Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FatalErrorException extends Exception
- {
- const ERR_PREFIX = '<strong>FATAL ERROR:</strong> ';
- public function __destruct()
- {
- die(self::ERR_PREFIX . $this->error);
- }
- }
- class WarningException extends Exception
- {
- const ERR_PREFIX = '<strong>WARNING:</strong> ';
- public function __destruct()
- {
- echo self::ERR_PREFIX . $this->error;
- }
- }
Add Comment
Please, Sign In to add comment