diff options
Diffstat (limited to 'src/Execution/TrapException.php')
| -rw-r--r-- | src/Execution/TrapException.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/Execution/TrapException.php b/src/Execution/TrapException.php deleted file mode 100644 index 3e6a440..0000000 --- a/src/Execution/TrapException.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace Nsfisis\Waddiwasi\Execution; - -use RuntimeException; -use Throwable; - -class TrapException extends RuntimeException -{ - private readonly TrapKind $trapKind; - - public function __construct( - string $message = "", - int $code = 0, - ?Throwable $previous = null, - TrapKind $trapKind = TrapKind::Unknown, - ) { - parent::__construct($message, $code, $previous); - $this->trapKind = $trapKind; - } - - public function getTrapKind(): TrapKind - { - return $this->trapKind; - } -} |
