Skip to content

Commit bdd5bfe

Browse files
committed
🚨 [main] clean error constants
1 parent e80e304 commit bdd5bfe

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

constants/error.go

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,6 @@ var DATABASE_CONNETION_ERROR = &ErrorEntity{
2727
ErrorCode: "DATABASE_CONNETION_ERROR",
2828
}
2929

30-
var SQL_WRAPPING_ERROR = &ErrorEntity{
31-
StatusCode: http.StatusInternalServerError,
32-
ErrorCode: "SQL_WRAPPING_ERROR",
33-
}
34-
35-
var SCHEMA_PREPARATION_FAIL_ERROR = &ErrorEntity{
36-
StatusCode: http.StatusInternalServerError,
37-
ErrorCode: "SCHEMA_PREPARATION_FAIL_ERROR",
38-
}
39-
40-
var TABLE_CREATION_ERROR = &ErrorEntity{
41-
StatusCode: http.StatusInternalServerError,
42-
ErrorCode: "TABLE_CREATION_ERROR",
43-
}
44-
var POSTGRESQL_ROW_SCANNING_ERROR = &ErrorEntity{
45-
StatusCode: http.StatusInternalServerError,
46-
ErrorCode: "POSTGRESQL_ROW_SCANNING_ERROR",
47-
}
4830
var REDIS_INSERTION_ERROR = &ErrorEntity{
4931
StatusCode: http.StatusInternalServerError,
5032
ErrorCode: "REDIS_INSERTION_ERROR",
@@ -61,6 +43,18 @@ var POSTGRESQL_INSERTION_ERROR = &ErrorEntity{
6143
StatusCode: http.StatusInternalServerError,
6244
ErrorCode: "POSTGRESQL_INSERTION_ERROR",
6345
}
46+
var POSTGRESQL_QUERY_ERROR = &ErrorEntity{
47+
StatusCode: http.StatusInternalServerError,
48+
ErrorCode: "POSTGRESQL_QUERY_ERROR",
49+
}
50+
var SETTING_GENERATOR_SEED_ERROR = &ErrorEntity{
51+
StatusCode: http.StatusInternalServerError,
52+
ErrorCode: "SETTING_GENERATOR_SEED_ERROR",
53+
}
54+
var ID_GENERATION_ERROR = &ErrorEntity{
55+
StatusCode: http.StatusInternalServerError,
56+
ErrorCode: "ID_GENERATION_ERROR",
57+
}
6458

6559
// STATUS_NOT_FOUND
6660
var URL_ID_MISSING_ERROR = &ErrorEntity{

0 commit comments

Comments
 (0)