Class ExceptionEventArgs
Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public class ExceptionEventArgs : EventArgs
Constructors
| Edit this page View SourceExceptionEventArgs(Exception, bool, bool)
Initializes a new instance of the ExceptionEventArgs class.
Declaration
public ExceptionEventArgs(Exception exception, bool isCritical = false, bool @throw = false)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | The Exception which is responsible for the event-call. |
bool | isCritical | Indicates if the exception is critical for the thrower. |
bool | throw | Indicates if the exception should be thrown after the event is handled. |
Properties
| Edit this page View SourceException
Gets the Exception which is responsible for the event-call.
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
Exception |
IsCritical
Gets a bool indicating if the exception is critical for the thrower.
Declaration
public bool IsCritical { get; }
Property Value
Type | Description |
---|---|
bool |
Throw
Gets or sets if the exception should be thrown after the event is handled.
Declaration
public bool Throw { get; set; }
Property Value
Type | Description |
---|---|
bool |