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