1.0.7 • Published 5 years ago

ts-dotnet-errors v1.0.7

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

ts-dotnet-errors

A collection of commonly used errors from the .NET world. Enables for creating wrapped errors, and more. Typescript type declarations have been pre-included for ease of use.

Install

    npm install ts-dotnet-errors

How to use

throw new DepreciatedError();

throw new NotImplementedError('Method Foo() has not been implemented.');

try {
    loadDatabase();
}
catch(error) {
    throw new DatabaseError('Unknown error occured.', error);
}

Error types

  • ApplicationError
  • ArgumentError
  • ArgumentNullError
  • ArgumentOutOfRangeError
  • ArithmeticError
  • DatabaseError
  • DepreciatedError
  • DivideByZeroError
  • FileNotFoundError
  • IndexOutOfRangeError
  • InvalidOperationError
  • IOError
  • NotImplementedError
  • NotSupportedError
  • NullReferenceError
  • OverflowError
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago