Parser icon indicating copy to clipboard operation
Parser copied to clipboard

How can i edit ParserException

Open Trikitto opened this issue 7 years ago • 1 comments

Hi,

First of all great package! I want to edit de method render() in ParserException.php. But if i do it probably be overwritten when a new version of this package is been released.

Can anyone tell me how i can exclude this or how to use my own custom ParserException in app/Exceptions?

Thanks in advance!

Trikitto avatar Mar 29 '18 12:03 Trikitto

Generally, folks will catch an exception from a package and then either handle it immediately, or throw a custom exception of their own, which can contain a reference to the first if you'd like to grab its contents while rendering your own output.

danhunsaker avatar Mar 29 '18 12:03 danhunsaker