Skip to main content

externalListItemNotFoundError

Thrown to indicate that an Interaction, a Task or a test scenario can't be executed due to no items are found in a list.

For example, it's not possible to get the first() or the last() item of a list if the list is empty.

Hierarchy

Index

Constructors

externalconstructor

  • Parameters

    • externalmessage: string

      Human-readable description of the error

    • externaloptionalcause: Error

      The root cause of this ListItemNotFoundError, if any

    Returns ListItemNotFoundError

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