errorx

package
v0.0.0-...-98367f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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) Error

func (e *ErrBadRequest) Error() string

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) Error

func (e *ErrConflict) Error() string

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) Error

func (e *ErrForbidden) Error() string

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) Error

func (e *ErrInternalServerError) Error() string

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) Error

func (e *ErrMethodNotAllowed) Error() string

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) Error

func (e *ErrNotFound) Error() string

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) Error

func (e *ErrNotImplemented) Error() string

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) Error

func (e *ErrPayloadTooLarge) Error() string

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) Error

func (e *ErrUnsupportedMediaType) Error() string

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 NewErrBadRequest(msg string, args ...any) Error

func NewErrConflict

func NewErrConflict(msg string, args ...any) Error

func NewErrForbidden

func NewErrForbidden(msg string, args ...any) Error

func NewErrInternalServerError

func NewErrInternalServerError(msg string, args ...any) Error

func NewErrMethodNotAllowed

func NewErrMethodNotAllowed(msg string, args ...any) Error

func NewErrNotFound

func NewErrNotFound(msg string, args ...any) Error

func NewErrNotImplemented

func NewErrNotImplemented(msg string, args ...any) Error

func NewErrPayloadTooLarge

func NewErrPayloadTooLarge(msg string, args ...any) Error

func NewErrUnsupportedMediaType

func NewErrUnsupportedMediaType(msg string, args ...any) Error

func NewErrorx

func NewErrorx(msg string, args ...any) Error

func NewStatusAccepted

func NewStatusAccepted(msg string, args ...any) Error

type StatusAccepted

type StatusAccepted struct {
	// contains filtered or unexported fields
}

func (*StatusAccepted) Error

func (e *StatusAccepted) Error() string

func (*StatusAccepted) GetStatus

func (e *StatusAccepted) GetStatus() int

func (*StatusAccepted) HumaError

func (e *StatusAccepted) HumaError() huma.StatusError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL