Skip to content

Class: NetworkValidationError ​

indicates that the response does not conform to the expected schema.

typically indicates an upstream response shape change or unexpected payload. it shouldn't happen, but- CraftiGames~

Extends ​

Constructors ​

Constructor ​

ts
new NetworkValidationError(
   network: string, 
   message: string, 
   options?: object): NetworkValidationError;

Parameters ​

ParameterType
networkstring
messagestring
options{ cause?: unknown; issues?: unknown; url?: string; }
options.cause?unknown
options.issues?unknown
options.url?string

Returns ​

NetworkValidationError

Overrides ​

NetworkAPIError.constructor

Properties ​

PropertyModifierTypeInherited from
issuesreadonlyunknown-
networkreadonlystringNetworkAPIError.network
statusreadonlynumber | undefinedNetworkAPIError.status
url?readonlystringNetworkAPIError.url

Distributed under the MIT License.