TimeZoneInvalidOffsetError.mjs (929B)
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/icu/latest/icu/time/zone/struct.InvalidOffsetError.html) 8 */ 9 10 11 export class TimeZoneInvalidOffsetError { 12 /** Create `TimeZoneInvalidOffsetError` from an object that contains all of `TimeZoneInvalidOffsetError`s fields. 13 * Optional fields do not need to be included in the provided object. 14 */ 15 static fromFields(structObj) { 16 return new TimeZoneInvalidOffsetError(structObj); 17 } 18 19 #internalConstructor(structObj) { 20 if (typeof structObj !== "object") { 21 throw new Error("TimeZoneInvalidOffsetError's constructor takes an object of TimeZoneInvalidOffsetError's fields."); 22 } 23 24 return this; 25 } 26 27 28 29 constructor(structObj) { 30 return this.#internalConstructor(...arguments) 31 } 32 }