demo merge into project

This commit is contained in:
Gordon
2021-12-01 12:16:02 +08:00
parent bd62da8e1a
commit 15660663f6
20 changed files with 788 additions and 7 deletions
+11
View File
@@ -60,6 +60,17 @@ var (
TokenUnknown = errors.New("couldn't handle this token")
)
const (
NoError = 0
FormattingError = 10001
DatabaseError = 10002
LogicalError = 10003
ServerError = 10004
HttpError = 10005
IoErrot = 10006
IntentionalError = 10007
)
func (e *ErrInfo) Error() string {
return e.ErrMsg
}