Skip to content
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

LevelMap Override Problem with Exceptions #1005

Closed
sfatula opened this issue Jun 7, 2017 · 1 comment
Closed

LevelMap Override Problem with Exceptions #1005

sfatula opened this issue Jun 7, 2017 · 1 comment

Comments

@sfatula
Copy link

sfatula commented Jun 7, 2017

The default exception level map includes class "Throwable" and essentially combines the passed level map to method registerExceptionHandler with the default. This might otherwise work, but, the problem is Throwable. So, in this case, I wanted to override TypeError and make it critical. The array_replace adds the TypeError to the end of the list. The problem with that is Throwable matches TypeError or any other error type as far as I can tell. So, it never gets to the override since it's after Throwable in the array. Therefore, registerExceptionHandler is of no use as is.

@Seldaek
Copy link
Owner

Seldaek commented Jun 19, 2017

Seems absolutely right.. Should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants