Documentation
¶
Overview ¶
Package errors represents base tron error struct and parsing method.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Message string `json:"message"`
Details []ErrorDetails `json:"details"`
// contains filtered or unexported fields
}
Error represents base error struct.
func ParseError ¶
ParseError parse error to Error struct. Support lissteron/simplerr and ozzo-validation packages.
func (*Error) GRPCStatus ¶ added in v0.8.0
GRPCStatus build status.Status from current error.
func (*Error) HTTPStatus ¶ added in v0.8.0
HTTPStatus return http status for error.
type ErrorDetails ¶ added in v0.8.0
ErrorDetails represents error details.
Click to show internal directories.
Click to hide internal directories.