forked from droptable/php-shunting-yard
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling errors #6
Comments
So what is the error/exception you‘re getting? Is it a Throwable? Those aren‘t Exceptions!
Viele Grüße,
Andreas
… Am 07.08.2019 um 09:39 schrieb Alex ***@***.***>:
Hi there:
I'm trying to catch error to prevent php to stop if there's no parseable string, but I can't figure out how to do it ...
I've tried many options:
catch (RR\Shunt\Exception\RuntimeError | RR\Shunt\Exception\ParseError $e)
catch (ParseError $e)
catch (Exception $e)
...
but no luck ...
Any idea ? ;-)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
RR\Shunt\Exception\RuntimeError |
this is an example ... I'd like to use it but I don't want execution stops if the formulae is not parseable ...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there:
I'm trying to catch error to prevent php to stop if there's no parseable string, but I can't figure out how to do it ...
I've tried many options:
catch (RR\Shunt\Exception\RuntimeError | RR\Shunt\Exception\ParseError $e)
catch (ParseError $e)
catch (Exception $e)
...
but no luck ...
Any idea ? ;-)
The text was updated successfully, but these errors were encountered: