Files
dashboard-icons/web/src/lib/errors.ts
2025-11-17 10:38:10 +01:00

16 lines
219 B
TypeScript

/**
* Custom error class for API errors
*/
export class ApiError extends Error {
status: number
constructor(message: string, status = 500) {
super(message)
this.name = "ApiError"
this.status = status
}
}