smartystreets-javascript-sdk
Version:
Quick and easy Smarty address validation.
2 lines (1 loc) • 1.88 kB
JavaScript
"use strict";var e,r;exports.__require=function(){if(r)return e;r=1;class t extends Error{constructor(e="unexpected error"){super(e)}}return e={BatchFullError:class extends t{constructor(){super("A batch can contain a max of 100 lookups.")}},BatchEmptyError:class extends t{constructor(){super("A batch must contain at least 1 lookup.")}},UndefinedLookupError:class extends t{constructor(){super("The lookup provided is missing or undefined. Make sure you're passing a Lookup object.")}},BadCredentialsError:class extends t{constructor(){super("Unauthorized: The credentials were provided incorrectly or did not match any existing active credentials.")}},PaymentRequiredError:class extends t{constructor(){super("Payment Required: There is no active subscription for the account associated with the credentials submitted with the request.")}},RequestEntityTooLargeError:class extends t{constructor(){super("Request Entity Too Large: The request body has exceeded the maximum size.")}},BadRequestError:class extends t{constructor(){super("Bad Request (Malformed Payload): A GET request lacked a street field or the request body of a POST request contained malformed JSON.")}},UnprocessableEntityError:class extends t{constructor(e){super(e)}},TooManyRequestsError:class extends t{constructor(){super("When using the public 'embedded key' authentication, we restrict the number of requests coming from a given source over too short of a time.")}},InternalServerError:class extends t{constructor(){super("Internal Server Error.")}},ServiceUnavailableError:class extends t{constructor(){super("Service Unavailable. Try again later.")}},GatewayTimeoutError:class extends t{constructor(){super("The upstream data provider did not respond in a timely fashion and the request failed. A serious, yet rare occurrence indeed.")}},DefaultError:class extends t{constructor(e){super(e)}}}};