# All files / lib/error valueerror.js

100% Statements 8/8
100% Branches 0/0
100% Functions 1/1
100% Lines 8/8

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    1418x

    18x
    27x
    27x

    27x
    27x

    18x

    18x
     var util = require('util');

    var ValueError = function(message) {
        Error.call(this);
        Error.captureStackTrace(this, this.constructor);

        this.name = 'ValueError';
        this.message = message;
    };

    util.inherits(ValueError, Error);

    module.exports = ValueError;