![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/smartystreets-javascript-sdk/src/ |
class SmartyError extends Error { constructor(message) { super(message); } } class BatchFullError extends SmartyError { constructor() { super("A batch can contain a max of 100 lookups."); } } class BatchEmptyError extends SmartyError { constructor() { super("A batch must contain at least 1 lookup."); } } class UndefinedLookupError extends SmartyError { constructor() { super("The lookup provided is missing or undefined. Make sure you're passing a Lookup object."); } } class BadCredentialsError extends SmartyError { constructor() { super("Unauthorized: The credentials were provided incorrectly or did not match any existing active credentials."); } } class PaymentRequiredError extends SmartyError { constructor() { super("Payment Required: There is no active subscription for the account associated with the credentials submitted with the request."); } } class RequestEntityTooLargeError extends SmartyError { constructor() { super("Request Entity Too Large: The request body has exceeded the maximum size."); } } class BadRequestError extends SmartyError { constructor() { super("Bad Request (Malformed Payload): A GET request lacked a street field or the request body of a POST request contained malformed JSON."); } } class UnprocessableEntityError extends SmartyError { constructor(message) { super(message); } } class TooManyRequestsError extends SmartyError { constructor() { super("When using the public 'website key' authentication, we restrict the number of requests coming from a given source over too short of a time."); } } class InternalServerError extends SmartyError { constructor() { super("Internal Server Error."); } } class ServiceUnavailableError extends SmartyError { constructor() { super("Service Unavailable. Try again later."); } } class GatewayTimeoutError extends SmartyError { constructor() { super("The upstream data provider did not respond in a timely fashion and the request failed. A serious, yet rare occurrence indeed."); } } module.exports = { BatchFullError: BatchFullError, BatchEmptyError: BatchEmptyError, UndefinedLookupError: UndefinedLookupError, BadCredentialsError: BadCredentialsError, PaymentRequiredError: PaymentRequiredError, RequestEntityTooLargeError: RequestEntityTooLargeError, BadRequestError: BadRequestError, UnprocessableEntityError: UnprocessableEntityError, TooManyRequestsError: TooManyRequestsError, InternalServerError: InternalServerError, ServiceUnavailableError: ServiceUnavailableError, GatewayTimeoutError: GatewayTimeoutError };