Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ExceptionHandler extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- public function customFunction() {
- echo "A custom function for this type of exception\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement