@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
16 lines (12 loc) • 442 B
text/typescript
import type { RawFetchResponse } from '../interfaces/RawFetchResponse'
import SpreeError from './SpreeError'
class BasicSpreeError extends SpreeError {
public summary: string
constructor(serverResponse: RawFetchResponse, errorsSummary: string) {
super(serverResponse)
Object.setPrototypeOf(this, BasicSpreeError.prototype)
this.name = 'BasicSpreeError'
this.summary = errorsSummary
}
}
export default BasicSpreeError