Skip to content

Commit 7bcf840

Browse files
add new error codes
1 parent c501a9a commit 7bcf840

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ErrorCode.go

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@ func (e ErrorCode) ToString() string {
99
}
1010

1111
const (
12-
REQUEST_NOT_VALID ErrorCode = "REQUEST_NOT_VALID"
13-
SQL_INSERT_ERROR ErrorCode = "SQL_INSERT_ERROR"
14-
SQL_UPDATE_ERROR ErrorCode = "SQL_UPDATE_ERROR"
15-
SQL_FETCH_ERROR ErrorCode = "SQL_FETCH_ERROR"
12+
REQUEST_NOT_VALID ErrorCode = "REQUEST_NOT_VALID"
13+
SQL_INSERT_ERROR ErrorCode = "SQL_INSERT_ERROR"
14+
SQL_UPDATE_ERROR ErrorCode = "SQL_UPDATE_ERROR"
15+
SQL_FETCH_ERROR ErrorCode = "SQL_FETCH_ERROR"
16+
API_URL_PARSING_ERROR ErrorCode = "API_URL_PARSING_ERROR"
17+
API_REQUEST_CREATION_ERROR ErrorCode = "API_REQUEST_CREATION_ERROR"
18+
API_REQUEST_ERROR ErrorCode = "API_REQUEST_ERROR"
19+
API_REQUEST_STATUS_ERROR ErrorCode = "API_REQUEST_STATUS_ERROR"
20+
JSON_SERIALIZATION_ERROR ErrorCode = "JSON_SERIALIZATION_ERROR"
21+
JSON_DESERIALIZATION_ERROR ErrorCode = "JSON_DESERIALIZATION_ERROR"
22+
FORM_SERIALIZATION_ERROR ErrorCode = "FORM_SERIALIZATION_ERROR"
1623
)

0 commit comments

Comments
 (0)