Constructors
constructor
- new Error(errorCode: ErrorCode, exception: Exception): Error
- new Error(): Error
-
Parameters
-
errorCode: ErrorCode
-
exception: Exception
-
Properties
Private _errorCode
_errorCode: ErrorCode
Private _exception
_exception: Exception
Methods
getDescription
-
Returns string
getErrorCode
- getErrorCode(): ErrorCode
-
Returns ErrorCode
getException
- getException(): Exception
-
Returns Exception
getTypeString
-
Returns string
setErrorCode
- setErrorCode(value: ErrorCode): void
-
Parameters
Returns void
setException
- setException(value: Exception): void
-
Parameters
Returns void
toJson
-
Returns string
The serialized JSON.
toString
-
Returns string
Static fromJson
- fromJson(errorJson: string): Error
-
Parameters
Returns Error
The deserialized error.
Static toJson
- toJson(error: Error): string
-
Parameters
Returns string
The serialized JSON.