StoneCollapseOptionsErrorclass
Typed public-settings validation error.
Import it
import { StoneCollapseOptionsError } from "@johnmorrisdotca/houseki/stone-collapse";
Definition
class StoneCollapseOptionsError
new StoneCollapseOptionsError(code: string, message: string): StoneCollapseOptionsError
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 { StoneCollapseOptionsError } from "@johnmorrisdotca/houseki/stone-collapse";
const error=new StoneCollapseOptionsError("docs-example","Invalid example setup");
console.log(error.name,error.code,error.message);StoneCollapseOptionsError docs-example Invalid example setupWhat it prints (run when this page was built)