port-validator
Version:
A port number formatting validator.
31 lines (27 loc) • 559 B
JavaScript
/**
* This file is part of node-port-validator
*
* Copyright (c) 2018 SAS 9 Février.
*
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*
*/
/**
* A custom error for {PortValidator}.
*
* @public
* @class
*/
class PortValidatorError extends Error {
/**
* Create a new instance of {PortValidatorError}.
*
* @param args - The arguments.
* @constructor
*/
constructor(...args) {
super(...args);
}
}
module.exports = {};
module.exports.PortValidatorError = PortValidatorError;