UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on

10 lines (8 loc) 305 B
import SpreeSDKError from './SpreeSDKError' export default class MisconfigurationError extends SpreeSDKError { constructor(message: string) { super(`Incorrect request setup: ${message}`) Object.setPrototypeOf(this, MisconfigurationError.prototype) this.name = 'MisconfigurationError' } }