Search Results for

    Show / Hide Table of Contents

    Class ContextualizedError<T>

    Represents an exception generated on a worker thread that carries an associated context object.

    Inheritance
    object
    Exception
    ContextualizedError<T>
    Implements
    IContextualizedError
    IAssetLoaderContext
    Namespace: TriLibCore.General
    Assembly: TriLibCore.Source.dll
    Syntax
    public class ContextualizedError<T> : Exception, IContextualizedError, IAssetLoaderContext
    Type Parameters
    Name Description
    T

    The type of the context object associated with the error.

    Constructors

    ContextualizedError(Exception, T)

    Initializes a new instance of the ContextualizedError<T> class using the given inner exception and context object.

    Declaration
    public ContextualizedError(Exception innerException, T errorContext)
    Parameters
    Type Name Description
    Exception innerException

    The underlying exception that caused the error.

    T errorContext

    The context object associated with the error.

    Fields

    ErrorContext

    Context object passed to the thread that generated the exception.

    Declaration
    public readonly T ErrorContext
    Field Value
    Type Description
    T

    Properties

    Context

    Gets or sets the asset loader context that was active when the error was generated.

    Declaration
    public AssetLoaderContext Context { get; set; }
    Property Value
    Type Description
    AssetLoaderContext

    Methods

    GetContext()

    Gets the context object associated with this error.

    Declaration
    public object GetContext()
    Returns
    Type Description
    object

    The context object originally passed to the thread.

    GetInnerException()

    Gets the inner exception that caused this contextualized error.

    Declaration
    public Exception GetInnerException()
    Returns
    Type Description
    Exception

    The underlying Exception instance.

    Implements

    IContextualizedError
    IAssetLoaderContext

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top TriLib documentation