OperationError class
Encapsulates an error from an operation.
Constructors
| Operation |
Initializes a new instance of the OperationError class. |
Properties
| exception | Gets the exception associated with the error. |
| message | Gets the message associated with the error. |
Methods
| to |
Returns a string representation of the error. |
Constructor Details
OperationError(Error)
Initializes a new instance of the OperationError class.
new OperationError(exception: Error)
Parameters
- exception
-
Error
The exception associated with the error.
Property Details
exception
Gets the exception associated with the error.
exception: Error
Property Value
Error
message
Gets the message associated with the error.
string message
Property Value
string
Method Details
toString()
Returns a string representation of the error.
function toString(): string
Returns
string
A string representation of the error.