mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-10-06 08:08:58 +02:00
This exception should be fired when the OS restricts the web user from executing certain actions. Also the template for errors has been modified so it displays the action and the target that was prevented. refs #4092
23 lines
439 B
PHP
23 lines
439 B
PHP
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
namespace Icinga\Exception;
|
|
|
|
/**
|
|
* Class ProgrammingError
|
|
* @package Icinga\Exception
|
|
*/
|
|
class SystemPermissionException extends \Exception
|
|
{
|
|
public $action;
|
|
public $target;
|
|
|
|
public function __construct($message, $action, $target = "")
|
|
{
|
|
parent::__construct($message);
|
|
$this->action = $action;
|
|
$this->target = $target;
|
|
}
|
|
}
|