All files / src error.ts

100% Statements 96/96
50% Branches 3/6
100% Functions 25/25
100% Lines 53/53

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 6719x 183x   61x   19x   19x 19x 19x 19x   19x 19x 19x   19x 19x 19x 3x 3x   19x 19x 19x 19x 4x 4x   19x   19x 19x 19x 19x   19x 19x   19x 19x     19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x 19x    
class ShopifyError extends Error {
  constructor(...args: any) {
    super(...args);
    Object.setPrototypeOf(this, new.target.prototype);
  }
}
 
class InvalidHmacError extends ShopifyError {}
class InvalidShopError extends ShopifyError {}
class InvalidJwtError extends ShopifyError {}
class MissingJwtTokenError extends ShopifyError {}
 
class SafeCompareError extends ShopifyError {}
class UninitializedContextError extends ShopifyError {}
class PrivateAppError extends ShopifyError {}
 
class HttpRequestError extends ShopifyError {}
class HttpMaxRetriesError extends ShopifyError {}
class HttpResponseError extends ShopifyError {
  public constructor(message: string, readonly code: number, readonly statusText: string) {
    super(message);
  }
}
class HttpRetriableError extends ShopifyError {}
class HttpInternalError extends HttpRetriableError {}
class HttpThrottlingError extends HttpRetriableError {
  public constructor(message: string, readonly retryAfter?: number) {
    super(message);
  }
}
 
class InvalidOAuthError extends ShopifyError {}
class SessionNotFound extends ShopifyError {}
class CookieNotFound extends ShopifyError {}
class InvalidSession extends ShopifyError {}
 
class InvalidWebhookError extends ShopifyError {}
class SessionStorageError extends ShopifyError {}
 
class MissingRequiredArgument extends ShopifyError {}
class UnsupportedClientType extends ShopifyError {}
 
export {
  ShopifyError,
  InvalidHmacError,
  InvalidShopError,
  InvalidJwtError,
  MissingJwtTokenError,
  SafeCompareError,
  HttpRequestError,
  HttpMaxRetriesError,
  HttpResponseError,
  HttpRetriableError,
  HttpInternalError,
  HttpThrottlingError,
  UninitializedContextError,
  InvalidOAuthError,
  SessionNotFound,
  CookieNotFound,
  InvalidSession,
  InvalidWebhookError,
  MissingRequiredArgument,
  UnsupportedClientType,
  SessionStorageError,
  PrivateAppError,
};