MCPcopy Create free account
hub / github.com/bytebase/dbhub / constructor

Method constructor

frontend/src/api/errors.ts:5–12  ·  view source on GitHub ↗
(
    message: string,
    public readonly status: number,
    public readonly statusText?: string
  )

Source from the content-addressed store, hash-verified

3 */
4export class ApiError extends Error {
5 constructor(
6 message: string,
7 public readonly status: number,
8 public readonly statusText?: string
9 ) {
10 super(message);
11 this.name = 'ApiError';
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected