@the-/error
Error for the-framework
Installation
$ npm install @the-/error --save
Usage
'use strict'
const { TheNotFoundError } = require('@the-/error')
async function tryExample() {
throw new TheNotFoundError()
}
tryExample().catch((err) => console.error(err))
API Guide
class
- .TheConflictError
- .TheError
- .TheExpiredError
- .TheForbiddenError
- .TheGoneError
- .TheInvalidParameterError
- .TheNotAcceptableError
- .TheNotFoundError
- .TheRequestTimeoutError
- .TheServerRottenError
- .TheUnauthorizedError
function
License
This software is released under the MIT License.