1 | <?php |
||
23 | class StanzaException extends PropertyAccessException |
||
24 | { |
||
25 | /** @var Error */ |
||
26 | private $_error; |
||
27 | |||
28 | /** |
||
29 | * Construct the exception. Note: The message is NOT binary safe. |
||
30 | * @link http://php.net/manual/en/exception.construct.php |
||
31 | * @param Error $error Stanza error describing exception |
||
32 | * @param string $message [optional] The Exception message to throw. |
||
33 | * @param int $code [optional] The Exception code. |
||
34 | * @param Exception $previous [optional] The previous exception used for the exception chaining. Since 5.3.0 |
||
35 | * @since 5.1.0 |
||
36 | */ |
||
37 | public function __construct(Error $error, $message = '', $code = 0, Exception $previous = null) |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @return Error |
||
46 | */ |
||
47 | public function getError() : Error |
||
51 | } |
||
52 |