MCPcopy Create free account
hub / github.com/mlco2/codecarbon / constructor

Method constructor

webapp/src/api/errors.ts:17–24  ·  view source on GitHub ↗
(
        message: string,
        public zodError: ZodError,
        public endpoint: string,
    )

Source from the content-addressed store, hash-verified

15
16export class ValidationError extends Error {
17 constructor(
18 message: string,
19 public zodError: ZodError,
20 public endpoint: string,
21 ) {
22 super(message);
23 this.name = "ValidationError";
24 }
25}
26
27export function handleError(error: unknown): void {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected