FEAT: Connection test creating connection

- If any error occurs, connection is deleted
 - If operation_result is false, connection is deleted
This commit is contained in:
Gabriel Rosa
2022-08-03 11:31:57 -03:00
parent a1cdad42ab
commit 688bf49f3b
11 changed files with 201 additions and 124 deletions
+8
View File
@@ -38,6 +38,13 @@ const TERMS_OF_USE = {
REQUIRED: 'TERMS_OF_USE.REQUIRED',
};
const CONNECTION_TEST = {
ERROR: 'CONNECTION_TEST.ERROR',
EXPIRED: 'CONNECTION_TEST.EXPIRED',
TIMEOUT: 'CONNECTION_TEST.TIMEOUT',
UNKNOWN: 'CONNECTION_TEST.UNKNOWN',
};
const ErrorCodes = {
UNKNOWN: 'UNKNOWN',
RATE_LIMIT: 'RATE_LIMIT',
@@ -47,6 +54,7 @@ const ErrorCodes = {
TERMS_OF_USE,
USER,
CUSTOMER,
CONNECTION_TEST,
};
export default ErrorCodes;