mirror of
https://github.com/caprover/caprover
synced 2026-10-26 08:38:31 +00:00
11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
export class CaptainError extends Error {
|
|
public captainErrorType: number
|
|
public apiMessage: string
|
|
|
|
constructor(code: number, msg: string) {
|
|
super(msg)
|
|
this.captainErrorType = code
|
|
this.apiMessage = msg
|
|
}
|
|
}
|