Skip to main content

externalLogicError

Thrown to indicate that an Interaction, a Task or a test scenario can't be executed due to a logical error.

For example, it's not possible to assert on the last HTTP Response if the request hasn't been performed yet.

Hierarchy

Index

Constructors

externalconstructor

  • new LogicError(message: string, cause?: Error): LogicError
  • Parameters

    • externalmessage: string

      Human-readable description of the error

    • externaloptionalcause: Error

      The root cause of this RuntimeError, if any

    Returns LogicError

Properties

publicexternaloptionalreadonlycause

cause?: Error

The root cause of this RuntimeError, if any

externalname

name: string

externalmessage

message: string

externaloptionalstack

stack?: string

Methods

staticexternalfromJSON

  • Parameters

    • externalserialised: JSONObject

    Returns LogicError

externaltoString

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


    Returns string

externaltoJSON

  • toJSON(): object
  • Returns object