c# - Does Elmah handle unhandled exceptions from other layers? -


i'm new elmah , considering implementing in project. asp.net mvc + umbraco + ef web project have multiple layers (business, dal etc).

my interest in elmah ability handle unhandled exceptions.

but question handle unhandled exceptions other layers (services, business, dal etc) or web layer (asp.net mvc) ?

elmah handles exception thrown client. means exceptions thrown in data layer not logged, if catch them in mvc layer or anywhere else. typically don't want exceptions lower layers end @ client.

elmah supports manual logging of errors through errorsignal this:

try {     database.dosomestuff(); } catch (somedatabaseexception ex) {     elmah.errorsignal.fromcurrentcontext().raise(ex); } 

Comments

Popular posts from this blog

bash - How do you programmatically add a bats test? -

android - alarm manager service starting every oncreate -

java - Getting exception in JDBC thin driver -