1 |
|
2 |
|
3 |
|
4 |
|
5 | (function(define) { 'use strict';
|
6 | define(function() {
|
7 |
|
8 | |
9 |
|
10 |
|
11 |
|
12 |
|
13 | function TimeoutError (message) {
|
14 | Error.call(this);
|
15 | this.message = message;
|
16 | this.name = TimeoutError.name;
|
17 | if (typeof Error.captureStackTrace === 'function') {
|
18 | Error.captureStackTrace(this, TimeoutError);
|
19 | }
|
20 | }
|
21 |
|
22 | TimeoutError.prototype = Object.create(Error.prototype);
|
23 | TimeoutError.prototype.constructor = TimeoutError;
|
24 |
|
25 | return TimeoutError;
|
26 | });
|
27 | }(typeof define === 'function' && define.amd ? define : function(factory) { module.exports = factory(); })); |
\ | No newline at end of file |