UNPKG

@ericblade/mws-simple

Version:

Modern, full featured nodejs Amazon MWS API in ~150 lines of code

15 lines (14 loc) 419 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ServerError extends Error { constructor(message, code, body) { super(message); this.code = 0; this.body = ''; if (Error.captureStackTrace) Error.captureStackTrace(this, ServerError); this.code = code; this.body = body; } } exports.default = ServerError;