1.0.7 • Published 6 years ago

ts-dotnet-errors v1.0.7

Weekly downloads
10
License
MIT
Repository
github
Last release
6 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

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago