Skip to content

Commit af56d1b

Browse files
committed
Make ParseCancellationException extends from LogicException
LogicException is analogous to the RuntimeException in Java.
1 parent 8a33e82 commit af56d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Error/Exceptions/ParseCancellationException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Antlr\Antlr4\Runtime\Error\Exceptions;
66

7-
class ParseCancellationException extends \Exception
7+
class ParseCancellationException extends \LogicException
88
{
99
public static function from(\Throwable $exception) : self
1010
{

0 commit comments

Comments
 (0)