DecimalLimitError.mjs (877B)
1 // generated by diplomat-tool 2 import wasm from "./diplomat-wasm.mjs"; 3 import * as diplomatRuntime from "./diplomat-runtime.mjs"; 4 5 6 /** 7 * Additional information: [1](https://docs.rs/fixed_decimal/latest/fixed_decimal/struct.LimitError.html) 8 */ 9 10 11 export class DecimalLimitError { 12 /** Create `DecimalLimitError` from an object that contains all of `DecimalLimitError`s fields. 13 * Optional fields do not need to be included in the provided object. 14 */ 15 static fromFields(structObj) { 16 return new DecimalLimitError(structObj); 17 } 18 19 #internalConstructor(structObj) { 20 if (typeof structObj !== "object") { 21 throw new Error("DecimalLimitError's constructor takes an object of DecimalLimitError's fields."); 22 } 23 24 return this; 25 } 26 27 28 29 constructor(structObj) { 30 return this.#internalConstructor(...arguments) 31 } 32 }