Class: RuntimeException
Extends
Exception
Constructors
Constructor
ts
new RuntimeException(message?: string, options?: ErrorOptions & {
code: string;
status: number;
}): RuntimeException;Parameters
| Parameter | Type |
|---|---|
message? | string |
options? | ErrorOptions & { code: string; status: number; } |
Returns
RuntimeException
Inherited from
ts
Exception.constructor;Properties
| Property | Modifier | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|---|
cause? | public | unknown | - | - | Exception.cause |
code? | public | string | A machine readable error code. This will allow the error handling logic to narrow down exceptions based upon the error code. | - | Exception.code |
help? | public | string | Optional help description for the error. You can use it to define additional human readable information for the error. | - | Exception.help |
message | public | string | - | - | Exception.message |
name | public | string | Name of the class that raised the exception. | - | Exception.name |
stack? | public | string | - | - | Exception.stack |
status | public | number | A status code for the error. Usually helpful when converting errors to HTTP responses. | - | Exception.status |
code | static | string | - | Exception.code | - |
help? | static | string | Define the error metadata as static properties to avoid setting them repeatedly on the error instance | - | Exception.help |
message? | static | string | - | - | Exception.message |
prepareStackTrace? | static | (err: Error, stackTraces: CallSite[]) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | - | Exception.prepareStackTrace |
stackTraceLimit | static | number | - | - | Exception.stackTraceLimit |
status | static | number | - | Exception.status | - |
Accessors
[toStringTag]
Get Signature
ts
get toStringTag: string;Returns
string
Inherited from
ts
Exception.[toStringTag]Methods
toString()
ts
toString(): string;Returns a string representation of an object.
Returns
string
Inherited from
ts
Exception.toString;captureStackTrace()
ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;Create .stack property on a target object
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
ts
Exception.captureStackTrace;