Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/0xsquid/squid-types into main
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdev3 committed Apr 23, 2024
2 parents 1fe418c + b9cce3c commit 47cb129
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,16 @@ export type SquidError = {
export type SquidErrorResponse = {
errors: SquidError[];
};

export enum ErrorType {
SCHEMA_VALIDATION_ERROR = "SCHEMA_VALIDATION_ERROR",
PATH_FINDER_ERROR = "PATH_FINDER_ERROR",
QUOTE_ERROR = "QUOTE_ERROR",
ROUTE_ERROR = "ROUTE_ERROR",
BAD_REQUEST = "BAD_REQUEST",
UNKNOWN_ERROR = "UNKNOWN_ERROR",
RATE_LIMIT = "RATE_LIMIT",
MAINTENANCE = "MAINTENANCE",
UNAUTHORIZED = "UNAUTHORIZED",
INTERNAL_ERROR = "INTERNAL_ERROR",
}

0 comments on commit 47cb129

Please sign in to comment.