C# 클래스 RIAServiceApplication.ErrorWindow

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

Private Properties

프로퍼티 타입 설명
ConvertExceptionToMessage string
CreateNew 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 into 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 method returns the Exception.Message value. You can modify this method to treat certain Exception classes differently.

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

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

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 into 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