C# Class Habanero.Faces.Win.FormExceptionNotifier.CollapsibleExceptionNotifyForm

Provides a form to display the exception message, using a "More Detail" button that collapses or uncollapses the error detail panel
Inheritance: FormWin
Show file Open project: Chillisoft/habanero.faces

Public Methods

Method Description
CollapsibleExceptionNotifyForm ( Exception ex, string furtherMessage, string title ) : System

Constructor that sets up the error message form

Private Methods

Method Description
EmailErrorClickHandler ( object sender, EventArgs e ) : void
GetEmailErrorSettings ( ) : IDictionary
GetErrorLabel ( string message ) : ILabel

Creates the red error label that appears at the top

GetSimpleMessage ( string message ) : ITextBox

Creates the text box that shows the error summary at the top

LayoutForm ( ) : void
MoreDetailClickHandler ( object sender, EventArgs e ) : void

Expands the form when the "More Details" button is clicked

OKButtonClickHandler ( object sender, EventArgs e ) : void

Handles the event of the OK button being pressed on the exception form, which closes the form

ResizeForm ( object sender, EventArgs e ) : void

Scales the components when the form is resized

SendErrorMessage ( IDictionary dictionary, string emailContent ) : void
SetFullDetailsPanel ( ) : void

Sets up the panel that shows the error details

ShowStackTraceClicked ( object sender, EventArgs e ) : void

Toggles the showing of the stack trace in the error details

Method Details

CollapsibleExceptionNotifyForm() public method

Constructor that sets up the error message form
public CollapsibleExceptionNotifyForm ( Exception ex, string furtherMessage, string title ) : System
ex System.Exception
furtherMessage string
title string
return System