@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
102 lines • 3.54 kB
TypeScript
import { AdapterResponse } from '../runtime/http/types';
export declare class ShopifyError extends Error {
constructor(message?: string);
}
export declare class InvalidHmacError extends ShopifyError {
}
export declare class InvalidShopError extends ShopifyError {
}
export declare class InvalidHostError extends ShopifyError {
}
export declare class InvalidJwtError extends ShopifyError {
}
export declare class MissingJwtTokenError extends ShopifyError {
}
export declare class InvalidDeliveryMethodError extends ShopifyError {
}
export declare class SafeCompareError extends ShopifyError {
}
export declare class PrivateAppError extends ShopifyError {
}
export declare class HttpRequestError extends ShopifyError {
}
export declare class HttpMaxRetriesError extends ShopifyError {
}
interface HttpResponseData {
code: number;
statusText: string;
body?: Record<string, unknown>;
headers?: Record<string, unknown>;
}
interface HttpResponseErrorParams extends HttpResponseData {
message: string;
}
export declare class HttpResponseError<ResponseType extends HttpResponseData = HttpResponseData> extends ShopifyError {
readonly response: ResponseType;
constructor({ message, code, statusText, body, headers, }: HttpResponseErrorParams);
}
export declare class HttpRetriableError<ResponseType extends HttpResponseData = HttpResponseData> extends HttpResponseError<ResponseType> {
}
export declare class HttpInternalError extends HttpRetriableError {
}
interface HttpThrottlingErrorData extends HttpResponseData {
retryAfter?: number;
}
interface HttpThrottlingErrorParams extends HttpThrottlingErrorData {
message: string;
}
export declare class HttpThrottlingError extends HttpRetriableError<HttpThrottlingErrorData> {
constructor({ retryAfter, ...params }: HttpThrottlingErrorParams);
}
export declare class RestResourceError extends ShopifyError {
}
interface GraphqlQueryErrorParams {
message: string;
response: Record<string, unknown>;
headers?: Record<string, unknown>;
body?: Record<string, any>;
}
export declare class GraphqlQueryError extends ShopifyError {
readonly response: Record<string, unknown>;
readonly headers?: Record<string, unknown>;
readonly body?: Record<string, any>;
constructor({ message, response, headers, body }: GraphqlQueryErrorParams);
}
export declare class InvalidOAuthError extends ShopifyError {
}
export declare class BotActivityDetected extends ShopifyError {
}
export declare class CookieNotFound extends ShopifyError {
}
export declare class InvalidSession extends ShopifyError {
}
interface InvalidWebhookParams {
message: string;
response: AdapterResponse;
}
export declare class InvalidWebhookError extends ShopifyError {
readonly response: AdapterResponse;
constructor({ message, response }: InvalidWebhookParams);
}
export declare class MissingWebhookCallbackError extends InvalidWebhookError {
}
export declare class SessionStorageError extends ShopifyError {
}
export declare class MissingRequiredArgument extends ShopifyError {
}
export declare class UnsupportedClientType extends ShopifyError {
}
export declare class InvalidRequestError extends ShopifyError {
}
interface BillingErrorParams {
message: string;
errorData: any;
}
export declare class BillingError extends ShopifyError {
readonly errorData: any;
constructor({ message, errorData }: BillingErrorParams);
}
export declare class FeatureDeprecatedError extends ShopifyError {
}
export {};
//# sourceMappingURL=error.d.ts.map