Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AssertionError

An error that is not expected to occur.

Hierarchy

  • Error
    • AssertionError

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • The constructor creates RuntimeError objects.

    Parameters

    • message: string

      The error message

    Returns AssertionError

Properties

message

message: string

name

name: string

Optional stack

stack: undefined | string

Static Error

Error: ErrorConstructor

Static type

type: "assertion_error" = "assertion_error"

The assertion_error error type

Methods

getType

  • getType(): string
  • Get the error type

    Returns string