Documentation ¶
Index ¶
- Constants
- func ResponseHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, err error)
- func ResponseHandlerWithLogger(lvl zerolog.Level) func(ctx context.Context, w http.ResponseWriter, r *http.Request, err error)
- func UnknownOperationHandler(w http.ResponseWriter, r *http.Request)
- type ErrorType
- type SmithyError
- func NewInternalFailureError(msg string) *SmithyError
- func NewInvalidInputError(msg string) *SmithyError
- func NewResourceNotFoundError(msg string) *SmithyError
- func NewSerializationError(msg string) *SmithyError
- func NewUnauthorizedError(msg string) *SmithyError
- func NewUnknownOperationError(msg string) *SmithyError
Constants ¶
View Source
const (
SmithyErrorTypeHeader = "X-Amzn-Errortype"
)
Variables ¶
This section is empty.
Functions ¶
func ResponseHandler ¶
func UnknownOperationHandler ¶
func UnknownOperationHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type SmithyError ¶
func NewInternalFailureError ¶
func NewInternalFailureError(msg string) *SmithyError
func NewInvalidInputError ¶
func NewInvalidInputError(msg string) *SmithyError
func NewResourceNotFoundError ¶
func NewResourceNotFoundError(msg string) *SmithyError
func NewSerializationError ¶
func NewSerializationError(msg string) *SmithyError
func NewUnauthorizedError ¶
func NewUnauthorizedError(msg string) *SmithyError
func NewUnknownOperationError ¶
func NewUnknownOperationError(msg string) *SmithyError
func (*SmithyError) AsJsonMessage ¶
func (e *SmithyError) AsJsonMessage() []byte
func (*SmithyError) Code ¶
func (e *SmithyError) Code() int
func (*SmithyError) Error ¶
func (e *SmithyError) Error() string
func (*SmithyError) Type ¶
func (e *SmithyError) Type() ErrorType
Click to show internal directories.
Click to hide internal directories.