docs(cookbook) Custom exception handler service cookbook.#2112
docs(cookbook) Custom exception handler service cookbook.#2112bennadel wants to merge 2 commits intoangular:masterfrom
Conversation
This cookbook demonstrates how to override the core `ExceptionHandler` class with a custom service class that both logs to the console as well as sending errors to a robust error-logginer service. This error-logging service can, in turn, send errors to the server; or, to Software-as-a-Service (SaaS) products like New Relic, TrackJS, and Raygun.
7dd5ed8 to
ade77e8
Compare
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
1 similar comment
|
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
|
What was the problem with the e2e here? |
|
@Foxandxss the fact that the UI stops updating after an error is thrown. As such, I couldn't capture the error and then update the UI and then test the UI in the e2e tests. It seems that the only way to test might be to use non-standard testing. So, for now, I'm just testing to make sure nothing blows up. |
|
@bennadel from what I have seen this is because change detection doesn't run after an exception. Can't you invoke change detection manually? (I don't know NG2/TS testing well). |
This cookbook demonstrates how to override the core
ExceptionHandlerclasswith a custom service class that both logs to the console as well as sending
errors to a robust error-logginer service. This error-logging service can,
in turn, send errors to the server; or, to Software-as-a-Service (SaaS)
products like New Relic, TrackJS, and Raygun.