ReplayErrorclass
A typed rejection of a malformed, unsupported or inconsistent native replay.
Import it
import { ReplayError } from "@johnmorrisdotca/houseki/gem-swap";
Definition
class ReplayError
new ReplayError(code: string, message: string): ReplayError
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The native stable error code used by callers to distinguish setup or replay failures. |
message | string | The human-readable diagnostic accompanying the native code. |
Members
| Name | Type | Description |
|---|---|---|
code | string | |
name | string | |
message | string | |
stack (optional) | string | undefined | |
cause (optional) | unknown |
Examples
import { ReplayError } from "@johnmorrisdotca/houseki/gem-swap";
const error=new ReplayError("docs-example","Invalid example setup");
console.log(error.name,error.code,error.message);ReplayError docs-example Invalid example setupWhat it prints (run when this page was built)