UNPKG

491 BJavaScriptView Raw
1var ResponseError = require('./ResponseError');
2var inherits = require('../shared/inherits');
3var addMixin = require('../shared/addMixin');
4
5/**
6 * @class
7 * @param {string} code The error code.
8 * @param {JSONPRequest} request The JSONP request.
9 */
10function JSONPResponseError(code, request) {
11 ResponseError.call(this, code, request);
12 addMixin(this, request.options, 'jsonpResponseErrorMixin');
13}
14
15inherits(ResponseError, JSONPResponseError);
16
17module.exports = JSONPResponseError;