2011-06-14 00:22:25 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* System exception
|
|
|
|
|
*
|
|
|
|
|
* Thrown if:
|
|
|
|
|
* - system error occured
|
|
|
|
|
* - unpredictable scenarios
|
|
|
|
|
*
|
|
|
|
|
* @author vesta, http://vestacp.com/
|
2011-08-06 16:12:20 +03:00
|
|
|
* @author Dmitry Malishev <dima.malishev@gmail.com>
|
2011-06-20 18:26:03 +03:00
|
|
|
* @copyright vesta 2010-2011
|
2011-06-14 00:22:25 +03:00
|
|
|
*/
|
|
|
|
|
class SystemException extends Exception {
|
|
|
|
|
const CODE_GENERAL = 0;
|
|
|
|
|
|
|
|
|
|
public function __construct($message, $code=self::CODE_GENERAL, $previous=null) {
|
|
|
|
|
parent::__construct($message, $code, $previous);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function __toString() {
|
|
|
|
|
print $this->message;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|