Skip to main content

LogicError

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

constructor

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

    • message: string

      Human-readable description of the error

    • optionalcause: Error

      The root cause of this RuntimeError, if any

    Returns LogicError

Properties

externalname

name: string

externalmessage

message: string

externaloptionalstack

stack?: string

publicoptionalreadonlycause

cause?: Error

The root cause of this RuntimeError, if any

Methods

staticfromJSON

  • Parameters

    • serialised: JSONObject

    Returns LogicError

toString

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


    Returns string

toJSON

  • toJSON(): object
  • Returns object