Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ExtendsException extends Exception { }
- class ThrowNewException {
- public function tryExeption() {
- try {
- try {
- throw new ExtendsException('catch!');
- } catch (ExtendsException $catch) {
- throw $catch;
- }
- } catch (Exception $throwNewException) {
- var_dump($throwNewException->getMessage());
- }
- }
- }
- $throwNewException = new ThrowNewException;
- $throwNewException->tryException();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement