Documentation
¶
Index ¶
- type ErrBadRequest
- type ErrConflict
- type ErrForbidden
- type ErrInternalServerError
- type ErrMethodNotAllowed
- type ErrNotFound
- type ErrNotImplemented
- type ErrPayloadTooLarge
- type ErrUnsupportedMediaType
- type Error
- func NewErrBadRequest(msg string, args ...any) Error
- func NewErrConflict(msg string, args ...any) Error
- func NewErrForbidden(msg string, args ...any) Error
- func NewErrInternalServerError(msg string, args ...any) Error
- func NewErrMethodNotAllowed(msg string, args ...any) Error
- func NewErrNotFound(msg string, args ...any) Error
- func NewErrNotImplemented(msg string, args ...any) Error
- func NewErrPayloadTooLarge(msg string, args ...any) Error
- func NewErrUnsupportedMediaType(msg string, args ...any) Error
- func NewErrorx(msg string, args ...any) Error
- func NewStatusAccepted(msg string, args ...any) Error
- type StatusAccepted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrBadRequest ¶
type ErrBadRequest struct {
// contains filtered or unexported fields
}
func (*ErrBadRequest) GetStatus ¶
func (e *ErrBadRequest) GetStatus() int
func (*ErrBadRequest) HumaError ¶
func (e *ErrBadRequest) HumaError() huma.StatusError
type ErrConflict ¶
type ErrConflict struct {
// contains filtered or unexported fields
}
func (*ErrConflict) GetStatus ¶
func (e *ErrConflict) GetStatus() int
func (*ErrConflict) HumaError ¶
func (e *ErrConflict) HumaError() huma.StatusError
type ErrForbidden ¶
type ErrForbidden struct {
// contains filtered or unexported fields
}
func (*ErrForbidden) GetStatus ¶
func (e *ErrForbidden) GetStatus() int
func (*ErrForbidden) HumaError ¶
func (e *ErrForbidden) HumaError() huma.StatusError
type ErrInternalServerError ¶
type ErrInternalServerError struct {
// contains filtered or unexported fields
}
func (*ErrInternalServerError) GetStatus ¶
func (e *ErrInternalServerError) GetStatus() int
func (*ErrInternalServerError) HumaError ¶
func (e *ErrInternalServerError) HumaError() huma.StatusError
type ErrMethodNotAllowed ¶
type ErrMethodNotAllowed struct {
// contains filtered or unexported fields
}
func (*ErrMethodNotAllowed) GetStatus ¶
func (e *ErrMethodNotAllowed) GetStatus() int
func (*ErrMethodNotAllowed) HumaError ¶
func (e *ErrMethodNotAllowed) HumaError() huma.StatusError
type ErrNotFound ¶
type ErrNotFound struct {
// contains filtered or unexported fields
}
func (*ErrNotFound) GetStatus ¶
func (e *ErrNotFound) GetStatus() int
func (*ErrNotFound) HumaError ¶
func (e *ErrNotFound) HumaError() huma.StatusError
type ErrNotImplemented ¶
type ErrNotImplemented struct {
// contains filtered or unexported fields
}
func (*ErrNotImplemented) GetStatus ¶
func (e *ErrNotImplemented) GetStatus() int
func (*ErrNotImplemented) HumaError ¶
func (e *ErrNotImplemented) HumaError() huma.StatusError
type ErrPayloadTooLarge ¶
type ErrPayloadTooLarge struct {
// contains filtered or unexported fields
}
func (*ErrPayloadTooLarge) GetStatus ¶
func (e *ErrPayloadTooLarge) GetStatus() int
func (*ErrPayloadTooLarge) HumaError ¶
func (e *ErrPayloadTooLarge) HumaError() huma.StatusError
type ErrUnsupportedMediaType ¶
type ErrUnsupportedMediaType struct {
// contains filtered or unexported fields
}
func (*ErrUnsupportedMediaType) GetStatus ¶
func (e *ErrUnsupportedMediaType) GetStatus() int
func (*ErrUnsupportedMediaType) HumaError ¶
func (e *ErrUnsupportedMediaType) HumaError() huma.StatusError
type Error ¶
type Error interface {
Error() string
GetStatus() int
HumaError() huma.StatusError
}
Error is the interface that all errors should implement
func NewErrBadRequest ¶
func NewErrConflict ¶
func NewErrForbidden ¶
func NewErrMethodNotAllowed ¶
func NewErrNotFound ¶
func NewErrNotImplemented ¶
func NewErrPayloadTooLarge ¶
func NewStatusAccepted ¶
type StatusAccepted ¶
type StatusAccepted struct {
// contains filtered or unexported fields
}
func (*StatusAccepted) GetStatus ¶
func (e *StatusAccepted) GetStatus() int
func (*StatusAccepted) HumaError ¶
func (e *StatusAccepted) HumaError() huma.StatusError
Click to show internal directories.
Click to hide internal directories.