php-shunting-yard icon indicating copy to clipboard operation
php-shunting-yard copied to clipboard

Handling errors

Open adantart opened this issue 4 years ago • 3 comments

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 ? ;-)

adantart avatar Aug 07 '19 07:08 adantart