StoneChainsOptionsErrorclass
Typed setup and authored challenge error.
Import it
import { StoneChainsOptionsError } from "@johnmorrisdotca/houseki/colour-chains";
Definition
class StoneChainsOptionsError
new StoneChainsOptionsError(code: string, message: string): StoneChainsOptionsError
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 { StoneChainsOptionsError } from "@johnmorrisdotca/houseki/colour-chains";
const error=new StoneChainsOptionsError("docs-example","Invalid example setup");
console.log(error.name,error.code,error.message);StoneChainsOptionsError docs-example Invalid example setupWhat it prints (run when this page was built)