Guest User

Untitled

a guest
Apr 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1.     class FatalErrorException extends Exception
  2.     {
  3.         const ERR_PREFIX = '<strong>FATAL ERROR:</strong> ';
  4.        
  5.         public function __destruct()
  6.         {
  7.             die(self::ERR_PREFIX . $this->error);
  8.         }
  9.     }
  10.    
  11.     class WarningException extends Exception
  12.     {
  13.         const ERR_PREFIX = '<strong>WARNING:</strong> ';
  14.        
  15.         public function __destruct()
  16.         {
  17.             echo self::ERR_PREFIX . $this->error;
  18.         }
  19.     }
Add Comment
Please, Sign In to add comment