Documentation ¶
Index ¶
- Constants
- func BadRequestResponse(err error, description string) error
- func ConflictResponse(err error, description string) error
- func InternalServerErrorResponse(err error, description string) error
- func MethodNotAllowedResponse(err error, description string) error
- func MethodNotImplementedResponse(err error, description string) error
- func NewServiceFailureFromResponse(code string, statusCode int, opcRequestId string, message string) (bool, error)
- func NoEtagMatchResponse(err error, description string) error
- func NotAuthenticatedResponse(err error, description string) error
- func OciErrorTypeResponse(err error) (bool, error)
- func ServiceUnavailableResponse(err error, description string) error
- func SignUpRequiredResponse(err error, description string) error
- func TooManyRequestsResponse(err error, description string) error
- func UnauthorizedAndNotFoundResponse(err error, description string) error
- type BadRequestOciError
- type ConflictOciError
- type InternalServerErrorOciError
- type MethodNotAllowedOciError
- type MethodNotImplementedOciError
- type NoEtagMatchOciError
- type NotAuthenticatedOciError
- type OciErrors
- type ServiceUnavailableOciError
- type SignUpRequiredOciError
- type TooManyRequestsOciError
- type UnauthorizedAndNotFoundOciError
Constants ¶
View Source
const ( CannotParseRequest string = "CannotParseRequest" InvalidParameters string = "InvalidParameters" InvalidParameter string = "InvalidParameter" LimitExceeded string = "LimitExceeded" MissingParameters string = "MissingParameters" MissingParameter string = "MissingParameter" QuotaExceeded string = "QuotaExceeded" RelatedResourceNotAuthorizedOrNotFound string = "RelatedResourceNotAuthorizedOrNotFound" NotAuthenticated string = "NotAuthenticated" SignUpRequired string = "SignUpRequired" NotAuthorizedOrNotFound string = "NotAuthorizedOrNotFound" NotFound string = "NotFound" MethodNotAllowed string = "MethodNotAllowed" IncorrectState string = "IncorrectState" InvalidatedRetryToken string = "InvalidatedRetryToken" NotAuthorizedOrResourceAlreadyExists string = "NotAuthorizedOrResourceAlreadyExists" NotAuthorized string = "NotAuthorized" NoEtagMatch string = "NoEtagMatch" TooManyRequests string = "TooManyRequests" InternalServerError string = "InternalServerError" MethodNotImplemented string = "MethodNotImplemented" )
Variables ¶
This section is empty.
Functions ¶
func BadRequestResponse ¶
For 400 errors
func InternalServerErrorResponse ¶
For 500 error
func MethodNotAllowedResponse ¶
For 405 errors
func MethodNotImplementedResponse ¶
For 501 error
func NoEtagMatchResponse ¶
For 412 errors
func NotAuthenticatedResponse ¶
For 401 errros
func OciErrorTypeResponse ¶
func ServiceUnavailableResponse ¶
For 503 error
func SignUpRequiredResponse ¶
For 402 errors
func TooManyRequestsResponse ¶
For 429 Error
func UnauthorizedAndNotFoundResponse ¶
For 403 and 404 errors
Types ¶
type BadRequestOciError ¶
type BadRequestOciError OciErrors
For 400 errors
func (BadRequestOciError) Error ¶
func (bd BadRequestOciError) Error() string
type ConflictOciError ¶
type ConflictOciError OciErrors
For 409 errors
func (ConflictOciError) Error ¶
func (c ConflictOciError) Error() string
type InternalServerErrorOciError ¶
type InternalServerErrorOciError OciErrors
For 500 Error
func (InternalServerErrorOciError) Error ¶
func (nf InternalServerErrorOciError) Error() string
type MethodNotAllowedOciError ¶
type MethodNotAllowedOciError OciErrors
For 405 errors
func (MethodNotAllowedOciError) Error ¶
func (mna MethodNotAllowedOciError) Error() string
type MethodNotImplementedOciError ¶
type MethodNotImplementedOciError OciErrors
For 501 Error
func (MethodNotImplementedOciError) Error ¶
func (mni MethodNotImplementedOciError) Error() string
type NoEtagMatchOciError ¶
type NoEtagMatchOciError OciErrors
For 412 errors
func (NoEtagMatchOciError) Error ¶
func (nem NoEtagMatchOciError) Error() string
type NotAuthenticatedOciError ¶
type NotAuthenticatedOciError OciErrors
For 401 errors
func (NotAuthenticatedOciError) Error ¶
func (na NotAuthenticatedOciError) Error() string
type OciErrors ¶
type ServiceUnavailableOciError ¶
type ServiceUnavailableOciError OciErrors
For 503 Error
func (ServiceUnavailableOciError) Error ¶
func (su ServiceUnavailableOciError) Error() string
type SignUpRequiredOciError ¶
type SignUpRequiredOciError OciErrors
For 402 errors
func (SignUpRequiredOciError) Error ¶
func (sr SignUpRequiredOciError) Error() string
type TooManyRequestsOciError ¶
type TooManyRequestsOciError OciErrors
For 429 Error
func (TooManyRequestsOciError) Error ¶
func (tmr TooManyRequestsOciError) Error() string
type UnauthorizedAndNotFoundOciError ¶
type UnauthorizedAndNotFoundOciError OciErrors
For 403 and 404 errors
func (UnauthorizedAndNotFoundOciError) Error ¶
func (ua UnauthorizedAndNotFoundOciError) Error() string
Click to show internal directories.
Click to hide internal directories.