Class: GenericError<T>
Defined in: packages/core/src/error/GenericError.ts:15
Implementation of the Error interface, providing more advanced error API.
Extends
Extended by
Type Parameters
• T = unknown
Constructors
new GenericError()
new GenericError<
T
>(message
,params
?):GenericError
<T
>
Defined in: packages/core/src/error/GenericError.ts:27
Initializes the generic IMA error.
Parameters
message
string
The message describing the cause of the error.
params?
A data map providing additional
details related to the error. It is recommended to set the
status
field to the HTTP response code that should be sent
to the client.
Returns
GenericError
<T
>