grpc-error-messages
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

grpc-error-messages

A collection of grpc error classes with default human-readable messages

Install:

npm install grpc-error-messages

Usage:

import { UnimplementedError } from 'grpc-error-messages';

function raiseError() {
  throw new UnimplementedError();
}

The above error will result in:

{
  "code": 12,
  "message": "The operation is not implemented.",
  "details": []
}

Package Sidebar

Install

npm i grpc-error-messages

Weekly Downloads

166

Version

1.0.0

License

ISC

Unpacked Size

13.5 kB

Total Files

4

Last publish

Collaborators

  • n3rdyme