MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createClientError

Function createClientError

services/cloud-agent-next/src/trpc-error.ts:64–70  ·  view source on GitHub ↗
(code: string, message: string, retryable?: boolean)

Source from the content-addressed store, hash-verified

62 return { error: parsedError.data, retryable: cause.retryable };
63}
64
65function parseBillingFailure(cause: unknown) {
66 if (!cause || typeof cause !== 'object' || !('billingFailure' in cause)) return undefined;
67 const parsed = customerBillingFailureSchema.safeParse(cause.billingFailure);
68 return parsed.success ? parsed.data : undefined;
69}
70
71export function createClientError(code: string, message: string, retryable?: boolean): ClientError {
72 return {
73 code,

Callers 2

trpc-error.test.tsFile · 0.85
projectTrpcErrorDataFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected