StoneCollapseOptionsErrorクラス
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Typed public-settings validation error.
インポート
import { StoneCollapseOptionsError } from "@johnmorrisdotca/houseki/stone-collapse";
定義
class StoneCollapseOptionsError
new StoneCollapseOptionsError(code: string, message: string): StoneCollapseOptionsError
引数
| 名前 | 型 | 説明 |
|---|---|---|
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. |
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | |
name | string | |
message | string | |
stack (省略可) | string | undefined | |
cause (省略可) | unknown |
例
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 setup出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。