Skip to content

Commit 65b14f5

Browse files
committed
Added UnexpectedValueException
1 parent ca0f658 commit 65b14f5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace Dazzle\Throwable\Exception\Runtime;
4+
5+
use Dazzle\Throwable\Exception\RuntimeException;
6+
7+
class UnexpectedValueException extends RuntimeException
8+
{}

test/TModule/ExceptionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Dazzle\Throwable\Exception\Runtime\OutOfBoundsException;
2020
use Dazzle\Throwable\Exception\Runtime\OverflowException;
2121
use Dazzle\Throwable\Exception\Runtime\UnderflowException;
22+
use Dazzle\Throwable\Exception\Runtime\UnexpectedValueException;
2223
use Dazzle\Throwable\Exception\System\ChildUnresponsiveException;
2324
use Dazzle\Throwable\Exception\System\ParentUnresponsiveException;
2425
use Dazzle\Throwable\Exception\System\TaskIncompleteException;
@@ -53,6 +54,7 @@ public function testCaseExceptionStructure_IsValid()
5354
OutOfBoundsException::class => RuntimeException::class,
5455
OverflowException::class => RuntimeException::class,
5556
UnderflowException::class => RuntimeException::class,
57+
UnexpectedValueException::class => RuntimeException::class,
5658
ChildUnresponsiveException::class => SystemException::class,
5759
ParentUnresponsiveException::class => SystemException::class,
5860
TaskIncompleteException::class => SystemException::class,

0 commit comments

Comments
 (0)