Definition at line 28 of file Exception.php.
◆ __construct()
__construct |
( |
|
$msg = '' , |
|
|
|
$code = 0 , |
|
|
Exception |
$previous = null |
|
) |
| |
Construct the exception
- Parameters
-
string | $msg | |
int | $code | |
Exception | $previous | |
- Returns
- void
Definition at line 43 of file Exception.php.
45 if (version_compare(PHP_VERSION,
'5.3.0',
'<')) {
46 parent::__construct($msg, (
int)
$code);
47 $this->_previous = $previous;
49 parent::__construct($msg, (
int)
$code, $previous);
◆ __call()
__call |
( |
|
$method, |
|
|
array |
$args |
|
) |
| |
Overloading
For PHP < 5.3.0, provides access to the getPrevious() method.
- Parameters
-
- Returns
- mixed
Definition at line 62 of file Exception.php.
64 if (
'getprevious' == strtolower(
$method)) {
◆ __toString()
String representation of the exception
- Returns
- string
Definition at line 75 of file Exception.php.
77 if (version_compare(PHP_VERSION,
'5.3.0',
'<')) {
78 if (
null !== ($e = $this->getPrevious())) {
79 return $e->__toString()
81 . parent::__toString();
84 return parent::__toString();
◆ _getPrevious()
Returns previous Exception
- Returns
- Exception|null
Definition at line 92 of file Exception.php.
94 return $this->_previous;
The documentation for this class was generated from the following file: