1 /*global BytePushers*/ 2 (function (BytePushers) { 3 "use strict"; 4 BytePushers = BytePushers || {}; 5 BytePushers.exceptions = BytePushers.namespace("software.bytepushers.exceptions"); 6 BytePushers.exceptions.InvalidParameterException = function (message) { 7 Error.call(this, message); 8 BytePushers.exceptions.InvalidParameterException.prototype = new Error(); 9 this.name = "BytePushers.exceptions.InvalidParameterException"; 10 this.message = message; 11 }; 12 BytePushers.exceptions.InvalidParameterException.prototype.toString = function () { 13 return this.name + "(" + this.message + ")"; 14 }; 15 BytePushers.exceptions.NullPointerException = function (message) { 16 Error.call(this, message); 17 BytePushers.exceptions.NullPointerException.prototype = new Error(); 18 this.name = "BytePushers.exceptions.NullPointerException"; 19 this.message = message; 20 }; 21 BytePushers.exceptions.NullPointerException.prototype.toString = function () { 22 return this.name + "(" + this.message + ")"; 23 }; 24 BytePushers.exceptions.ExpectedArrayIsEmptyException = function (message) { 25 Error.call(this, message); 26 BytePushers.exceptions.ExpectedArrayIsEmptyException.prototype = new Error(); 27 this.name = "BytePushers.exceptions.ExpectedArrayIsEmptyException"; 28 this.message = message; 29 }; 30 BytePushers.exceptions.ExpectedArrayIsEmptyException.prototype.toString = function () { 31 return this.name + "(" + this.message + ")"; 32 }; 33 BytePushers.exceptions.InvalidDateRangeException = function (message) { 34 Error.call(this, message); 35 BytePushers.exceptions.InvalidDateRangeException.prototype = new Error(); 36 this.name = "BytePushers.exceptions.InvalidDateRangeException"; 37 this.message = message; 38 }; 39 BytePushers.exceptions.InvalidDateRangeException.prototype.toString = function () { 40 return this.name + "(" + this.message + ")"; 41 }; 42 }(BytePushers));