Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RuntimeError

An error that signals a runtime error.

Hierarchy

  • Error
    • RuntimeError

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • The constructor creates RuntimeError objects.

    Parameters

    • message: string

      The error message

    • Optional cause: Error | ErrorReasonType

    Returns RuntimeError

Properties

Optional cause

cause: Error | ErrorReasonType

The cause of the error

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Static type

type: "runtime_error" = "runtime_error"

The runtime_error error type

Methods

getType

  • getType(): string
  • Get the error type

    Returns string