Documentation ¶
Index ¶
Constants ¶
View Source
const (
ERROR_PARAMETER = 100
)
Variables ¶
View Source
var ERROR_DATA_NOT_FOUND = NewServiceError("数据不存在")
Functions ¶
func ErrorHandler ¶
func NewServiceError ¶
Types ¶
type ServiceError ¶
type ServiceError struct { Code int `json:"code"` Message interface{} `json:"message"` }
func (*ServiceError) Error ¶
func (e *ServiceError) Error() string
Click to show internal directories.
Click to hide internal directories.