diff --git a/constants/error.go b/constants/error.go index 4a0cfaf..f30139b 100644 --- a/constants/error.go +++ b/constants/error.go @@ -27,24 +27,6 @@ var DATABASE_CONNETION_ERROR = &ErrorEntity{ ErrorCode: "DATABASE_CONNETION_ERROR", } -var SQL_WRAPPING_ERROR = &ErrorEntity{ - StatusCode: http.StatusInternalServerError, - ErrorCode: "SQL_WRAPPING_ERROR", -} - -var SCHEMA_PREPARATION_FAIL_ERROR = &ErrorEntity{ - StatusCode: http.StatusInternalServerError, - ErrorCode: "SCHEMA_PREPARATION_FAIL_ERROR", -} - -var TABLE_CREATION_ERROR = &ErrorEntity{ - StatusCode: http.StatusInternalServerError, - ErrorCode: "TABLE_CREATION_ERROR", -} -var POSTGRESQL_ROW_SCANNING_ERROR = &ErrorEntity{ - StatusCode: http.StatusInternalServerError, - ErrorCode: "POSTGRESQL_ROW_SCANNING_ERROR", -} var REDIS_INSERTION_ERROR = &ErrorEntity{ StatusCode: http.StatusInternalServerError, ErrorCode: "REDIS_INSERTION_ERROR", @@ -61,6 +43,18 @@ var POSTGRESQL_INSERTION_ERROR = &ErrorEntity{ StatusCode: http.StatusInternalServerError, ErrorCode: "POSTGRESQL_INSERTION_ERROR", } +var POSTGRESQL_QUERY_ERROR = &ErrorEntity{ + StatusCode: http.StatusInternalServerError, + ErrorCode: "POSTGRESQL_QUERY_ERROR", +} +var SETTING_GENERATOR_SEED_ERROR = &ErrorEntity{ + StatusCode: http.StatusInternalServerError, + ErrorCode: "SETTING_GENERATOR_SEED_ERROR", +} +var ID_GENERATION_ERROR = &ErrorEntity{ + StatusCode: http.StatusInternalServerError, + ErrorCode: "ID_GENERATION_ERROR", +} // STATUS_NOT_FOUND var URL_ID_MISSING_ERROR = &ErrorEntity{