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

1.1.6 • Public • Published

grpc-errors

A quick and easy way of generating errors for use with grpc

Installation

npm install --save grpc-errors

Usage

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

/grpc-errors/

    Package Sidebar

    Install

    npm i grpc-errors

    Weekly Downloads

    216

    Version

    1.1.6

    License

    MIT

    Unpacked Size

    5.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • ortootech