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 SourceExceptionHolder(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 SourceException
Gets the captured exception dispatch info.
Declaration
public ExceptionDispatchInfo Exception { get; }
Property Value
| Type | Description |
|---|---|
| ExceptionDispatchInfo |