UNPKG

@shipengine/connect-order-source-api

Version:

This is the typescript/javascript definitions for the order source api

26 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DetailedError = exports.ShipEngineErrorCode = void 0; /** @description The standard error codes used by the platform */ var ShipEngineErrorCode; (function (ShipEngineErrorCode) { ShipEngineErrorCode["generic"] = "generic"; ShipEngineErrorCode["serialization"] = "serialization"; ShipEngineErrorCode["validation"] = "validation"; ShipEngineErrorCode["external_client_error"] = "external_client_error"; })(ShipEngineErrorCode || (exports.ShipEngineErrorCode = ShipEngineErrorCode = {})); /** @description This represents information that can be gathered about an error */ class DetailedError { /** @description This is the custom error code used by external systems @example "AMAZON_ERR_124", "shopify_bad_request_435323" */ external_error_code; /** @description An error message that will be bubbled up to the users */ message; /** @description The status code associated with this error */ external_http_status_code; /** @description The full response or error returned (serialized) */ raw_external_context; /** @description The standarized code associated with this error type */ standardized_error_code; } exports.DetailedError = DetailedError; //# sourceMappingURL=detailed-error.js.map