Documentation
¶
Index ¶
- func IsAlreadyExists(err error) bool
- func IsFailedPrecondition(err error) bool
- func IsInternal(err error) bool
- func IsInvalidArgument(err error) bool
- func IsNotFound(err error) bool
- func IsNotImplemented(err error) bool
- func IsResourcesExhausted(err error) bool
- func IsUnknown(err error) bool
- func NewAlreadyExists(msg string) error
- func NewDeadlineExceeded(msg string) error
- func NewFailedPrecondition(msg string) error
- func NewInvalidArgument(msg string, details ...*ErrorDetail) error
- func NewNotFound(msg string) error
- func NewNotImplemented(msg string) error
- func NewResourcesExhausted(msg string) error
- func NewUnknown(msg string) error
- func OverrideHumaErrorBuilder()
- type Code
- type ErrorDetail
- type RavelError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExists ¶
func IsFailedPrecondition ¶
func IsInternal ¶
func IsInvalidArgument ¶
func IsNotFound ¶
func IsNotImplemented ¶
func IsResourcesExhausted ¶
func NewAlreadyExists ¶
func NewDeadlineExceeded ¶
func NewFailedPrecondition ¶
func NewInvalidArgument ¶
func NewInvalidArgument(msg string, details ...*ErrorDetail) error
func NewNotFound ¶
func NewNotImplemented ¶
func NewResourcesExhausted ¶
func NewUnknown ¶
func OverrideHumaErrorBuilder ¶
func OverrideHumaErrorBuilder()
Types ¶
type ErrorDetail ¶
type ErrorDetail = huma.ErrorDetail
type RavelError ¶
type RavelError struct { RavelCode Code `json:"code"` Status int `json:"status"` Title string `json:"title"` Detail string `json:"detail"` Errors []*ErrorDetail `json:"errors,omitempty"` // contains filtered or unexported fields }
func FromHTTPResponse ¶
func FromHTTPResponse(resp *http.Response) *RavelError
func (*RavelError) Code ¶
func (r *RavelError) Code() Code
func (*RavelError) Error ¶
func (r *RavelError) Error() string
func (*RavelError) GetStatus ¶
func (r *RavelError) GetStatus() int
Click to show internal directories.
Click to hide internal directories.