@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
20 lines • 869 B
TypeScript
import type { JSONObject } from 'tiny-types';
import { RuntimeError } from './RuntimeError';
/**
* Thrown to indicate that an [`Interaction`](https://serenity-js.org/api/core/class/Interaction/), a [`Task`](https://serenity-js.org/api/core/class/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.
*
* @group Errors
*/
export declare class LogicError extends RuntimeError {
static fromJSON(serialised: JSONObject): LogicError;
/**
* @param message - Human-readable description of the error
* @param [cause] - The root cause of this [`RuntimeError`](https://serenity-js.org/api/core/class/RuntimeError/), if any
*/
constructor(message: string, cause?: Error);
}
//# sourceMappingURL=LogicError.d.ts.map