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

Class ApiError

frontend/src/api/errors.ts:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2 * Custom error class for API-related errors with HTTP status codes
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