Hm... something strange happend with code in original message - it should be like that:
partial class Dashboard : PortalModuleBase, IActionable
{
protected void Page_Init(object sender, EventArgs e)
{
this.Error += new EventHandler(Dashboard_Error);
}
void Dashboard_Error(object sender, EventArgs e)
{
// some custom logging here
}
private void Page_Error(object sender, System.EventArgs e)}
{
// some custom logging here
}
protected void Page_PreRender(object sender, EventArgs e)}
{
Throw new Exception("Bugaga");
}
}