AnrDaemon
Продвинутый новичок
PHP:
if(version_compare(PHP_VERSION, '5.3', '<'))
{
class Exception53 extends Exception
{
protected $previous = NULL;
public function __construct($message = "" , $code = 0 , Exception53 $previous = NULL)
{
$this->previous = $previous;
return parent::__construct($message, $code);
}
final public function getPrevious()
{
return $this->previous;
}
}
}
else
{
class Exception53 extends Exception {}
}