C# 클래스 ERP.ErrorWindow

ChildWindow class that displays errors to the user.
상속: System.Windows.Controls.ChildWindow
파일 보기 프로젝트 열기: arthurgfonseca/ERP-Grupo5 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConvertExceptionToMessage string
CreateNew void
InitializeComponent void
OKButton_Click void

공개 메소드들

메소드 설명
CreateNew ( Exception exception ) : void

Creates a new Error Window given an exception. Current stack trace will be displayed if app is running under debug or on the local machine The exception is converted onto a message using ConvertExceptionToMessage

CreateNew ( Exception exception, StackTracePolicy policy ) : void

Creates a new Error Window given an exception. The exception is converted onto a message using ConvertExceptionToMessage

CreateNew ( string message ) : void

Creates a new Error Window given an error message. Current stack trace will be displayed if app is running under debug or on the local machine.

CreateNew ( string message, StackTracePolicy policy ) : void

Creates a new Error Window given an error message.

보호된 메소드들

메소드 설명
ErrorWindow ( string message, string errorDetails ) : System

Creates a new ErrorWindow instance.

비공개 메소드들

메소드 설명
ConvertExceptionToMessage ( Exception e ) : string

Creates a user friendly message given an Exception. Currently this simply takes the Exception.Message value, optionally but you might want to change this to treat some specific Exception classes differently

CreateNew ( string message, string stackTrace, StackTracePolicy policy ) : void

All other factory methods will result in a call to this one

InitializeComponent ( ) : void
OKButton_Click ( object sender, RoutedEventArgs e ) : void

메소드 상세

CreateNew() 공개 정적인 메소드

Creates a new Error Window given an exception. Current stack trace will be displayed if app is running under debug or on the local machine The exception is converted onto a message using ConvertExceptionToMessage
public static CreateNew ( Exception exception ) : void
exception System.Exception The exception to display.
리턴 void

CreateNew() 공개 정적인 메소드

Creates a new Error Window given an exception. The exception is converted onto a message using ConvertExceptionToMessage
public static CreateNew ( Exception exception, StackTracePolicy policy ) : void
exception System.Exception The exception to display.
policy StackTracePolicy When to display the stack trace, see .
리턴 void

CreateNew() 공개 정적인 메소드

Creates a new Error Window given an error message. Current stack trace will be displayed if app is running under debug or on the local machine.
public static CreateNew ( string message ) : void
message string The message to display.
리턴 void

CreateNew() 공개 정적인 메소드

Creates a new Error Window given an error message.
public static CreateNew ( string message, StackTracePolicy policy ) : void
message string The message to display.
policy StackTracePolicy When to display the stack trace, see .
리턴 void

ErrorWindow() 보호된 메소드

Creates a new ErrorWindow instance.
protected ErrorWindow ( string message, string errorDetails ) : System
message string The error message to display.
errorDetails string Extra information about the error.
리턴 System