MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / constructor

Method constructor

apps/api/src/utils/errors.ts:4–14  ·  view source on GitHub ↗
(
    message: string,
    payload?: Record<string, unknown>,
    options?: ErrorOptions
  )

Source from the content-addressed store, hash-verified

2 public readonly payload?: Record<string, unknown>;
3
4 constructor(
5 message: string,
6 payload?: Record<string, unknown>,
7 options?: ErrorOptions
8 ) {
9 super(message, options);
10 this.name = 'LogError';
11 this.payload = payload;
12
13 Object.setPrototypeOf(this, new.target.prototype);
14 }
15}
16
17export class HttpError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected