UNPKG

decova-dotnet-developer

Version:

This package provides fundumentals that a .net developer may miss while working with Typescript, whether they are missing functinalities or funcionalities provided in a non-elegant design in javascript. Bad naming, bad design of optional parameters, non-c

46 lines 2.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Exception_InvalidProgramState = exports.Exception_UnintendedExecutionPath = exports.Exception_ArgumentNull = exports.Exception_ArgumentInvalid = exports.Exception = void 0; class Exception { constructor(Message, InnerException = null) { this.Message = Message; this.InnerException = InnerException; } } exports.Exception = Exception; class Exception_ArgumentInvalid extends Exception { constructor(ArgumentName, Value, Description = null, InnerException = null) { super(`Invalid argument: {${ArgumentName} = ${Value}} is invalid.\r\n${Description}`, InnerException); this.ArgumentName = ArgumentName; this.Value = Value; this.Description = Description; this.InnerException = InnerException; } } exports.Exception_ArgumentInvalid = Exception_ArgumentInvalid; class Exception_ArgumentNull extends Exception { constructor(Message, InnerException = null) { super(Message, InnerException); this.Message = Message; this.InnerException = InnerException; } } exports.Exception_ArgumentNull = Exception_ArgumentNull; class Exception_UnintendedExecutionPath extends Exception { constructor(Message, InnerException = null) { super(Message, InnerException); this.Message = Message; this.InnerException = InnerException; } } exports.Exception_UnintendedExecutionPath = Exception_UnintendedExecutionPath; class Exception_InvalidProgramState extends Exception { constructor(InvalidVarName, Description, InnerException = null) { super(`Invalid program state at var:${InvalidVarName}\r\n ${Description}`, InnerException); this.InvalidVarName = InvalidVarName; this.Description = Description; this.InnerException = InnerException; } } exports.Exception_InvalidProgramState = Exception_InvalidProgramState; //# sourceMappingURL=Exceptions.js.map