Files
VestaCP/web/vesta/core/exceptions/SystemException.class.php
2011-06-20 18:26:03 +03:00

28 lines
528 B
PHP

<?php
/**
* System exception
*
* Thrown if:
* - system error occured
* - unpredictable scenarios
*
* @author Malishev Dima <dima.malishev@gmail.com>
* @author vesta, http://vestacp.com/
* @copyright vesta 2010-2011
*/
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;
}
}
?>