Versions in this module Expand all Collapse all v1 v1.0.0 Mar 26, 2025 Changes in this version + type ErrorType string + const ErrorTypeConflict + const ErrorTypeForbidden + const ErrorTypeInternalServer + const ErrorTypeInvalidRequest + const ErrorTypeMethodNotAllowed + const ErrorTypeNotFound + const ErrorTypeRequestFailed + const ErrorTypeServiceUnavailable + const ErrorTypeUnauthorized + const ErrorTypeValidationFailed + type LambdaError struct + Err error + Message string + StatusCode int + Type ErrorType + func NewConflictError(msg string, err error) *LambdaError + func NewForbiddenError(msg string, err error) *LambdaError + func NewInternalServerError(msg string, err error) *LambdaError + func NewInvalidRequestError(msg string, err error) *LambdaError + func NewMethodNotAllowedError() *LambdaError + func NewNotFoundError(msg string, err error) *LambdaError + func NewRequestFailedError(msg string, err error) *LambdaError + func NewServiceUnavailableError(msg string, err error) *LambdaError + func NewUnauthorizedError(msg string, err error) *LambdaError + func NewValidationFailedError(msg string, err error) *LambdaError + func (e *LambdaError) Error() string + func (e *LambdaError) ToAPIGatewayResponse() events.APIGatewayProxyResponse + func (e *LambdaError) Unwrap() error