@@ -10,22 +10,22 @@ |
||
10 | 10 | class Exception extends \Exception |
11 | 11 | { |
12 | 12 | |
13 | - /** |
|
14 | - * @var string |
|
15 | - */ |
|
16 | - protected $template = ''; |
|
13 | + /** |
|
14 | + * @var string |
|
15 | + */ |
|
16 | + protected $template = ''; |
|
17 | 17 | |
18 | - /** |
|
19 | - * @param string $message |
|
20 | - * @param int $code |
|
21 | - * @param null|\Exception $previous |
|
22 | - */ |
|
23 | - public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | - { |
|
25 | - if (is_array($message)) { |
|
26 | - $message = vsprintf($this->template, $message); |
|
27 | - } |
|
18 | + /** |
|
19 | + * @param string $message |
|
20 | + * @param int $code |
|
21 | + * @param null|\Exception $previous |
|
22 | + */ |
|
23 | + public function __construct($message, $code = 0, \Exception $previous = null) |
|
24 | + { |
|
25 | + if (is_array($message)) { |
|
26 | + $message = vsprintf($this->template, $message); |
|
27 | + } |
|
28 | 28 | |
29 | - parent::__construct($message, $code, $previous); |
|
30 | - } |
|
29 | + parent::__construct($message, $code, $previous); |
|
30 | + } |
|
31 | 31 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionNonexistentException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s action %s is nonexistent'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s action %s is nonexistent'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionPrivateInsufficientAuthenticationException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s private action %s requires authentication'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s private action %s requires authentication'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerActionProtectedInsufficientAuthenticationException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s protected action %s requires authentication'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s protected action %s requires authentication'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerInvalidSuperclassException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s is not a subclass of Controller'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s is not a subclass of Controller'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |
@@ -12,17 +12,17 @@ |
||
12 | 12 | class ControllerNonexistentException extends Exception |
13 | 13 | { |
14 | 14 | |
15 | - /** |
|
16 | - * {@inheritdoc} |
|
17 | - */ |
|
18 | - protected $template = 'Controller %s is nonexistent'; |
|
15 | + /** |
|
16 | + * {@inheritdoc} |
|
17 | + */ |
|
18 | + protected $template = 'Controller %s is nonexistent'; |
|
19 | 19 | |
20 | - /** |
|
21 | - * {@inheritdoc} |
|
22 | - */ |
|
23 | - public function __construct($message) |
|
24 | - { |
|
25 | - parent::__construct($message); |
|
26 | - } |
|
20 | + /** |
|
21 | + * {@inheritdoc} |
|
22 | + */ |
|
23 | + public function __construct($message) |
|
24 | + { |
|
25 | + parent::__construct($message); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | } |