Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = NewError(0, "success") ServerError = NewError(10000000, "server internal error") InvalidParams = NewError(10000001, "invalid parameters") NotFound = NewError(10000002, "not found") TooManyRequests = NewError(10000007, "too many requests") )
View Source
var ( ErrorGetTagListFail = NewError(20010001, "get tag list failed") ErrorCreateTagFail = NewError(20010002, "create tag failed") ErrorUpdateTagFail = NewError(20010003, "update tag failed") ErrorDeleteTagFail = NewError(20010004, "delete tag failed") ErrorCountTagFail = NewError(20010005, "count tag failed") ErrorGetArticleFail = NewError(20020001, "get article failed") ErrorGetArticlesFail = NewError(20020002, "get articles failed") ErrorCreateArticleFail = NewError(20020003, "create article failed") ErrorUpdateArticleFail = NewError(20020004, "update article failed") ErrorDeleteArticleFail = NewError(20020005, "delete article failed") ErrorUploadFileFail = NewError(20030001, "upload file failed") )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) StatusCode ¶
func (*Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.