MCPcopy Create free account
hub / github.com/deepnote/deepnote / ApiError

Class ApiError

packages/database-integrations/src/loading/api-error.ts:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2 * Error thrown when a Deepnote API request fails.
3 */
4export class ApiError extends Error {
5 readonly statusCode: number
6
7 constructor(statusCode: number, message: string) {
8 super(message)
9 this.name = 'ApiError'
10 this.statusCode = statusCode
11 }
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected