Skip to main content

externalAssertionError

Thrown to indicate that an assertion has failed.

Hierarchy

Index

Constructors

externalconstructor

  • Parameters

    • externalmessage: string

      Human-readable description of the error and the difference between the expected and actual values

    • externaloptionalcause: Error

      The root cause of this RuntimeError, if any

    Returns AssertionError

Properties

publicexternaloptionalreadonlycause

cause?: Error

The root cause of this RuntimeError, if any

externalname

name: string

externalmessage

message: string

externaloptionalstack

stack?: string

Methods

staticexternalfromJSON

externaltoString

  • toString(): string
  • Human-readable description of the error


    Returns string

externaltoJSON

  • toJSON(): object
  • Returns object