mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-09-09 16:29:10 +02:00
25 lines
464 B
PHP
25 lines
464 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Protection exception
|
||
|
|
*
|
||
|
|
* Thrown if unexpected action or behaviour detected
|
||
|
|
*
|
||
|
|
* @author vesta, http://vestacp.com/
|
||
|
|
* @copyright vesta 2010
|
||
|
|
*/
|
||
|
|
class ProtectionException 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;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
?>
|