Skip to content

Commit 36e95ba

Browse files
committed
add V8JsException and fix inheritance chain
1 parent 3fc5830 commit 36e95ba

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

src/V8JsException.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
class V8JsException extends RuntimeException
4+
{
5+
}

src/V8JsMemoryLimitException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
final class V8JsMemoryLimitException extends Exception
3+
final class V8JsMemoryLimitException extends V8JsException
44
{
55
}

src/V8JsScriptException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
final class V8JsScriptException extends Exception
3+
final class V8JsScriptException extends V8JsException
44
{
55
/**
66
*

src/V8JsTimeLimitException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
final class V8JsTimeLimitException extends Exception
3+
final class V8JsTimeLimitException extends V8JsException
44
{
55
}

0 commit comments

Comments
 (0)