{"library":"gerror","type":"library","category":null,"description":"A TypeScript library that mixes gRPC Error and ECMAScript Error, providing a unified error class with gRPC status codes and protobuf serialization. v1.0.16 is the latest stable version, released Oct 2021, with no further updates. Ships type definitions. Key differentiator: seamless integration of gRPC error handling into async ECMAScript environments, with toJSON() support and async error wrapping utility.","language":"javascript","status":"active","version":"1.0.16","tags":["javascript","error","grpc","ecma","status","protocol buffer","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install gerror","imports":["import { GError } from 'gerror'","import { wrapAsyncError } from 'gerror'","import { GError } from 'gerror'; const e = GError.from(new Error('test'))"]},{"cmd":"yarn add gerror","imports":[]},{"cmd":"pnpm add gerror","imports":[]}],"homepage":"https://github.com/huan/gerror#readme","github":"https://github.com/huan/gerror","docs":null,"changelog":null,"pypi":null,"npm":"gerror","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}