mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-24 00:31:50 +00:00
13 lines
205 B
TypeScript
13 lines
205 B
TypeScript
export class ApiError extends Error {
|
|
constructor (
|
|
readonly code: string,
|
|
readonly message: string
|
|
) {
|
|
super(message)
|
|
}
|
|
}
|
|
|
|
export enum Code {
|
|
PhoneCodeInvalid = 'PHONE_CODE_INVALID'
|
|
}
|