mirror of
https://github.com/kottster/kottster.git
synced 2026-02-20 01:05:11 +08:00
* feat: Add API references * docs: Add links to API reference, add new pages * fix: Remove src/index.ts * fix: Update typedoc configs
11 lines
265 B
TypeScript
11 lines
265 B
TypeScript
export class ProcedureError extends Error {
|
|
constructor(
|
|
message: string,
|
|
public code?: string,
|
|
public context?: Record<string, any>
|
|
) {
|
|
super(message);
|
|
this.name = 'ProcedureError';
|
|
Error.captureStackTrace?.(this, ProcedureError);
|
|
}
|
|
} |