Developer forum

Forum » Feature requests » OnModuleError notification

OnModuleError notification


Reply
When a module throws an unhandled exception the output of the module is:
 
“An error occured while attaching module (Dynamicweb.Frontend.Content)”
Followed by the stacktrace.
 
This is not ideal, when using custom error pages and handling.

Can you add a OnModuleError notification to the code?

Replies

 
Nicolai Høeg Pedersen
Reply
Yes - your wish has been added to the backlog.

The reason for this behaviour is to avoid displaying too much exception information in live websites.

You can allways use debugging to see your error, or do a try-catch in your getcontent method and print out the ex.tostring information.