(
kind: RpcErrorKind,
toolName: string,
message: string,
details: {
status?: number;
code?: number;
notAllowed?: boolean;
bodyText?: string;
} = {},
)
| 55 | readonly bodyText?: string; |
| 56 | |
| 57 | constructor( |
| 58 | kind: RpcErrorKind, |
| 59 | toolName: string, |
| 60 | message: string, |
| 61 | details: { |
| 62 | status?: number; |
| 63 | code?: number; |
| 64 | notAllowed?: boolean; |
| 65 | bodyText?: string; |
| 66 | } = {}, |
| 67 | ) { |
| 68 | super(message); |
| 69 | this.name = 'RpcError'; |
| 70 | this.kind = kind; |
| 71 | this.toolName = toolName; |
| 72 | this.status = details.status; |
| 73 | this.code = details.code; |
| 74 | this.notAllowed = details.notAllowed ?? false; |
| 75 | this.bodyText = details.bodyText; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /** True, wenn der Fehler daran liegt, dass /rpc dieses Tool nicht anbietet. */ |
nothing calls this directly
no outgoing calls
no test coverage detected