all files / javascript/ software.bytepushers.exceptions.Errors.js

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