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

Method constructor

webapp/src/api/errors.ts:6–13  ·  view source on GitHub ↗
(
        message: string,
        public status: number,
        public endpoint: string,
    )

Source from the content-addressed store, hash-verified

4
5export class ApiError extends Error {
6 constructor(
7 message: string,
8 public status: number,
9 public endpoint: string,
10 ) {
11 super(message);
12 this.name = "ApiError";
13 }
14}
15
16export class ValidationError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected