# exceptions-node

> Node Exceptions

Latest version **1.0.0** (published 2019-12-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install exceptions-node
pnpm add exceptions-node
yarn add exceptions-node
bun add exceptions-node
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-12-10 |
| First published | 2019-12-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hovsep Vardanyan |
| Maintainers | hovsep |

## Links

- npm: https://www.npmjs.com/package/exceptions-node
- npm.io page: https://npm.io/package/exceptions-node

## Recent versions

- 1.0.0 (latest) — 2019-12-10

## README

Implemented Exceptions for node js 

# Exceptions List

```javascript
    CloneNotSupportedException(message);
    ClassNotFoundException(message);
    IllegalAccessException(message);
    InstantiationException(message);
    NoSuchFieldException(message);
    NoSuchMethodException(message);
    InterruptedException(message);
    RuntimeException(message);
    ArithmeticException(message);
    ArrayStoreException(message);
    ClassCastException(message);
    EnumConstantNotPresentException(message);
    IllegalArgumentException(message);
    IllegalMonitorStateException(message);
    IllegalStateException(message);
    IndexOutOfBoundsException(message);
    NegativeArraySizeException(message);
    NullPointerException(message);
    SecurityException(message);
    TypeNotPresentException(message);
    UnsupportedOperationException(message);
```

# Example

```javascript

const { NullPointerException } = require("./index");

let x = null;
if(x === null) {
    throw new NullPointerException("x cannot be null");
}


```

---
_Source: https://npm.io/package/exceptions-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
