node/@bufbuild/protobuf/dist/commonjs/reflect/error.d.ts
raw| 1 | import type { DescField, DescOneof } from "../descriptors.js"; |
| 2 | declare const errorNames: string[]; |
| 3 | export declare class FieldError extends Error { |
| 4 | readonly name: (typeof errorNames)[number]; |
| 5 | constructor(fieldOrOneof: DescField | DescOneof, message: string, name?: (typeof errorNames)[number]); |
| 6 | readonly field: () => DescField | DescOneof; |
| 7 | } |
| 8 | export declare function isFieldError(arg: unknown): arg is FieldError; |
| 9 | export {}; |