phoenix errors added (#1272)

This commit is contained in:
Srinath Narayanan
2022-05-23 16:28:45 +05:30
committed by GitHub
parent dfd5a7c698
commit d13b7a50ad
3 changed files with 19 additions and 18 deletions

View File

@@ -450,21 +450,21 @@ export interface IResponse<T> {
data: T;
}
export interface IValidationError {
export interface IPhoenixError {
message: string;
type: string;
}
export interface IMaxAllocationTimeExceeded extends IValidationError {
export interface IMaxAllocationTimeExceeded extends IPhoenixError {
earliestAllocationTimestamp: string;
maxAllocationTimePerDayPerUserInMinutes: string;
}
export interface IMaxDbAccountsPerUserExceeded extends IValidationError {
export interface IMaxDbAccountsPerUserExceeded extends IPhoenixError {
maxSimultaneousConnectionsPerUser: string;
}
export interface IMaxUsersPerDbAccountExceeded extends IValidationError {
export interface IMaxUsersPerDbAccountExceeded extends IPhoenixError {
maxSimultaneousUsersPerDbAccount: string;
}
@@ -557,4 +557,5 @@ export enum PhoenixErrorType {
AllocationValidationResult = "AllocationValidationResult",
RegionNotServicable = "RegionNotServicable",
SubscriptionNotAllowed = "SubscriptionNotAllowed",
UnknownError = "UnknownError",
}