Class ContextualizedError<T>
Represents a Thread Exception with a Context.
Inherited Members
Namespace: TriLibCore.General
Assembly: TriLibCore.dll
Syntax
public class ContextualizedError<T> : Exception, ISerializable, IContextualizedError, IAssetLoaderContext
Type Parameters
Name | Description |
---|---|
T |
Constructors
ContextualizedError(Exception, T)
Initializes the Contextualized Error with the given inner Exception and Context.
Declaration
public ContextualizedError(Exception innerException, T errorContext)
Parameters
Type | Name | Description |
---|---|---|
Exception | innerException | The inner Exception. |
T | errorContext | The Context which has been passed to the Error. |
Fields
ErrorContext
Context passed to the Thread which generated the Exception.
Declaration
public readonly T ErrorContext
Field Value
Type | Description |
---|---|
T |
Properties
Context
The Asset Loader Context used when the error was generated.
Declaration
public AssetLoaderContext Context { get; set; }
Property Value
Type | Description |
---|---|
AssetLoaderContext |
Methods
GetContext()
Gets the Context Object.
Declaration
public object GetContext()
Returns
Type | Description |
---|---|
object | System.Object. |
GetInnerException()
Gets the Contextualized Error inner Exception.
Declaration
public Exception GetInnerException()
Returns
Type | Description |
---|---|
Exception | The inner Exception. |