import {UnknownError} from '@serenity-js/core/lib/errors'
public class | source

UnknownError

Thrown to indicate that an unknown error has occurred.

Extends:

ErrorRuntimeError → UnknownError

Constructor Summary

Public Constructor
public

constructor(message: string, cause: Error)

Inherited Summary

From class RuntimeError
public

name: *

public

stack: string

public

toString(): string

Human-readable description

Public Constructors

public constructor(message: string, cause: Error) source

Params:

NameTypeAttributeDescription
message string

Human-readable description of the error

cause Error
  • optional

The root cause of this RuntimeError, if any