C# Класс RIAServiceApplication.ErrorWindow

ChildWindow class that displays errors to the user.
Наследование: System.Windows.Controls.ChildWindow
Показать файл Открыть проект Примеры использования класса

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