Skip to editor
Psalm
Docs
Playground
Plugins
Blog
Paid support
Share
Fix issues
Show original
PHP
Settings
<?php class CustomException extends Exception{ /** @param mixed $code */ public function __construct(string $message = '', $code = 0, throwable $previous = null) { parent::__construct($message, $code, $previous); } } class AnotherException extends Exception {} try { throw new \CustomException(); } catch(\Exception $exc) { throw new \CustomException($exc->getMessage(), $exc->getCode(), $exc); } try { throw new \CustomException(); } catch(\Exception $exc) { throw new \AnotherException($exc->getMessage(), $exc->getCode(), $exc); }
Issues
Types
idle
Saved Oct 7 2020 11:33 UTC
⌘/Ctrl+Enter
run
⌘/Ctrl+S
share
F8
/
⇧F8
next/prev issue