Class ErrorRoutedEventArgs
Provides data about an exception that occured during an operation.
Inheritance
System.Object
System.EventArgs
System.Windows.RoutedEventArgs
ErrorRoutedEventArgs
System.Windows.RoutedEventArgs.InvokeEventHandler(System.Delegate, System.Object)
System.Windows.RoutedEventArgs.OnSetSource(System.Object)
System.Windows.RoutedEventArgs.Handled
System.Windows.RoutedEventArgs.OriginalSource
System.Windows.RoutedEventArgs.RoutedEvent
System.Windows.RoutedEventArgs.Source
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.Pdf_hpsftrbd_wpftmp.dll
Syntax
public class ErrorRoutedEventArgs : RoutedEventArgs
Constructors
View SourceErrorRoutedEventArgs(Exception)
Initializes a new instance of the ErrorRoutedEventArgs class with the specified exception.
Declaration
public ErrorRoutedEventArgs(Exception error)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | error | The error that has occured. |
ErrorRoutedEventArgs(String, Exception)
Initializes a new instance of the ErrorRoutedEventArgs class with the specified command name and exception.
Declaration
public ErrorRoutedEventArgs(string commandName, Exception error)
Parameters
Type | Name | Description |
---|---|---|
System.String | commandName | The name of the command during which the error occured. |
System.Exception | error | The error that has occured. |
Properties
View SourceCommandName
Gets the name of the command during which the error occured.
Declaration
public string CommandName { get; }
Property Value
Type | Description |
---|---|
System.String |
Error
Gets the System.Exception that occured.
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
System.Exception |
ErrorHandled
Gets or sets a value indicating if the error was handled by the subscriber.
Declaration
public bool ErrorHandled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If this is not set to true
by a subscriber, the exception will be thrown.