Sha256: c026765bf9a2b09500b9b36a8c408491e0170d15a4c37cb81ba3ce650c5d67f7
Contents?: true
Size: 984 Bytes
Versions: 6
Compression:
Stored size: 984 Bytes
Contents
/*global define*/ define([ ], function( ) { "use strict"; /** * An event that is raised when a request encounters an error. * * @constructor * @alias RequestErrorEvent * * @param {Number} [statusCode] The HTTP error status code, such as 404. * @param {Object} [response] The response included along with the error. */ var RequestErrorEvent = function RequestErrorEvent(statusCode, response) { /** * The HTTP error status code, such as 404. If the error does not have a particular * HTTP code, this property will be undefined. * * @type {Number} */ this.statusCode = statusCode; /** * The response included along with the error. If the error does not include a response, * this property will be undefined. * * @type {Object} */ this.response = response; }; return RequestErrorEvent; });
Version data entries
6 entries across 6 versions & 1 rubygems