Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInsufficientStorage = BackendPublishError{HTTPCode: http.StatusInsufficientStorage, Info: "insufficient storage on backend"} ErrBackendTargetNotFound = BackendPublishError{HTTPCode: http.StatusNotFound, Info: "publishing target on backend not found"} ErrClientNoConnection = BackendPublishError{HTTPCode: http.StatusBadGateway, Info: "no connection to backend"} ErrInternalBackendError = BackendPublishError{HTTPCode: http.StatusInternalServerError, Info: "internal error on backend"} ErrClientConversionFailed = BackendPublishError{HTTPCode: http.StatusBadRequest, Info: "conversion to target format failed"} )
Functions ¶
This section is empty.
Types ¶
type BackendPublishError ¶
type BackendPublishError struct { HTTPCode int Info string // contains filtered or unexported fields }
func (BackendPublishError) Code ¶
func (e BackendPublishError) Code() int
func (BackendPublishError) Error ¶
func (e BackendPublishError) Error() string
func (*BackendPublishError) Is ¶
func (e *BackendPublishError) Is(target error) bool
func (BackendPublishError) Message ¶
func (e BackendPublishError) Message() string
func (*BackendPublishError) Unwrap ¶
func (e *BackendPublishError) Unwrap() error
func (*BackendPublishError) Wrap ¶
func (e *BackendPublishError) Wrap(wrappedError error)
Click to show internal directories.
Click to hide internal directories.