Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ortoo/grpc-errors
https://github.com/ortoo/grpc-errors
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ortoo/grpc-errors
- Owner: ortoo
- License: mit
- Created: 2016-12-04T22:39:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T11:42:51.000Z (over 1 year ago)
- Last Synced: 2024-06-19T05:50:36.511Z (5 months ago)
- Language: JavaScript
- Size: 237 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-grpc - grpc-errors - A quick and easy way of generating errors for use with grpc (Language-Specific / Node.js)
README
# grpc-errors
A quick and easy way of generating errors for use with grpc
## Installation
```
npm install --save grpc-errors
```## Usage
```javascript
const grpcErrors = require('grpc-errors');// Code...
var err = new grpcErrors.AlreadyExistsError('The file already exists!');
```
### Errors
- `CancelledError`
- `UnknownError`
- `InvalidArgumentError`
- `DeadlineExceededError`
- `NotFoundError`
- `AlreadyExistsError`
- `PermissionDeniedError`
- `UnauthenticatedError`
- `ResourceExhaustedError`
- `FailedPreconditionError`
- `AbortedError`
- `OutOfRangeError`
- `UnimplementedError`
- `InternalError`
- `UnavailableError`
- `DataLossError`
- `UnauthenticatedError`