Class: RuntimeException
Extends
Error
Implements
Constructors
new RuntimeException()
new RuntimeException(
message
?,options
?):RuntimeException
Parameters
Parameter | Type |
---|---|
message ? | string |
options ? | Omit <RuntimeExceptionOptions , "message" > |
Returns
Overrides
Error.constructor
Defined in
new RuntimeException()
new RuntimeException(
options
?):RuntimeException
Parameters
Parameter | Type |
---|---|
options ? | RuntimeExceptionOptions |
Returns
Overrides
Error.constructor
Defined in
Properties
Property | Modifier | Type | Default value | Description | Inherited from |
---|---|---|---|---|---|
context | public | RuntimeExceptionContext | {} | Additional context | - |
message | public | string | undefined | - | RuntimeExceptionInterface .message Error.message |
name | public | string | undefined | - | RuntimeExceptionInterface .name Error.name |
stack? | public | string | undefined | - | RuntimeExceptionInterface .stack Error.stack |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | undefined | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab) | Error.prepareStackTrace |
stackTraceLimit | static | number | undefined | - | Error.stackTraceLimit |
Accessors
errorCode
get
errorCode():string
The error code.
set
errorCode(v
):void
The error code.
Parameters
Parameter | Type |
---|---|
v | string |
Returns
string
Implementation of
RuntimeExceptionInterface
.errorCode
Defined in
httpStatus
get
httpStatus():HttpStatus
Optional HTTP status code to use only when this exception is sent over an HTTP service.
Please consider this to be a hint for API error responses.
Returns
HttpStatus
Implementation of
RuntimeExceptionInterface
.httpStatus
Defined in
safeMessage
get
safeMessage():undefined
|string
If set, this message will be used on responses instead of message
.
Use this when the main message might expose
Returns
undefined
| string
Implementation of
RuntimeExceptionInterface
.safeMessage
Defined in
Methods
captureStackTrace()
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
.tmp/repos/rockets/node_modules/@types/node/globals.d.ts:4