Search Results for

    Show / Hide Table of Contents
    View Source

    Class SafeLazy.ExceptionHolder

    Holds an exception that occurred during lazy value evaluation.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public class SafeLazy.ExceptionHolder
    Remarks

    Used to store exceptions in the cache without re-throwing them during normal access, allowing the exception to be thrown once when the value is actually requested.

    Constructors

    View Source

    ExceptionHolder(ExceptionDispatchInfo)

    Initializes a new instance of the SafeLazy.ExceptionHolder class.

    Declaration
    public ExceptionHolder(ExceptionDispatchInfo e)
    Parameters
    Type Name Description
    ExceptionDispatchInfo e

    The captured exception dispatch info.

    Properties

    View Source

    Exception

    Gets the captured exception dispatch info.

    Declaration
    public ExceptionDispatchInfo Exception { get; }
    Property Value
    Type Description
    ExceptionDispatchInfo
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX