Class OnErrorHandlingException
Raised when a TAL on-error
attribute encounters an exception whilst
attempting to handle a different rendering exception.
In this case, the System.Exception.InnerException will relate to the error encountered during the on-error handling process. The OriginalException is the error (raised in a different part of the rendering process) which the on-error attribute was attempting to handle.
Implements
Inherited Members
Namespace: ZptSharp.Tal
Assembly: ZptSharp.Abstractions.dll
Syntax
[Serializable]
public class OnErrorHandlingException : ZptRenderingException, ISerializable
Constructors
| Improve this Doc View SourceOnErrorHandlingException()
Initializes a new instance of the OnErrorHandlingException class
Declaration
public OnErrorHandlingException()
OnErrorHandlingException(SerializationInfo, StreamingContext)
Initializes a new instance of the OnErrorHandlingException class
Declaration
protected OnErrorHandlingException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
OnErrorHandlingException(String)
Initializes a new instance of the OnErrorHandlingException class
Declaration
public OnErrorHandlingException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A System.String that describes the exception. |
OnErrorHandlingException(String, Exception)
Initializes a new instance of the OnErrorHandlingException class
Declaration
public OnErrorHandlingException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A System.String that describes the exception. |
System.Exception | inner | The exception that is the cause of the current exception. |
Properties
| Improve this Doc View SourceOriginalException
Gets or sets the original exception which was being handled when the current exception was raised..
Declaration
public Exception OriginalException { get; set; }
Property Value
Type | Description |
---|---|
System.Exception | The original exception. |