UNPKG

@tsdotnet/exceptions

Version:

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tsdotnet/exceptions/blob/master/LICENSE) ![npm-publish](https://github.com/tsdotnet/exceptions/workflows/npm-publish/badge.svg) [![npm version](htt

20 lines 804 B
"use strict"; /*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT * Based upon: https://msdn.microsoft.com/en-us/library/System.Exception%28v=vs.110%29.aspx */ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const ArgumentException_1 = tslib_1.__importDefault(require("./ArgumentException")); const NAME = 'ArgumentNullException'; class ArgumentNullException extends ArgumentException_1.default { constructor(paramName, message = (paramName ? `{${paramName}}` : 'Argument') + ' is null (or undefined).', innerException) { super(paramName, message, innerException); } getName() { return NAME; } } exports.default = ArgumentNullException; //# sourceMappingURL=ArgumentNullException.js.map