Constable Authorization Engine 2.0 BETA

IPolicyLoaderContext.Exception Property

[This is preliminary documentation and subject to change.]

Gets the exception that was raised while attempting to create an instance of the object identified by the AssemblyQualifiedTypeName.

[Visual Basic]
Property Exception As Exception
[C#]
System.Exception Exception {get;}

Property Value

The exception reference.

Remarks

The AuthorizationPolicyLoader creates objects in two phases:

First it calls the CreateInstance method. If the method returns a valid object, it continues loading the next policy object. If the method raises an exception, the exception is stored in this Exception property and the AuthorizationPolicyLoader calls the CreateFallbackInstance method passing it the IPolicyLoaderContext reference with the Exception property set to the exception.

This allows IPolicyLoaderTypeResolver implementation to create "fallback" (substitute) objects for types that aren't available to the Design Environment.

See Also

IPolicyLoaderContext Interface | LaMarvin.Constable.Design Namespace