errors

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MPL-2.0 Imports: 4 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthSchemeError

func IsAuthSchemeError(err error) bool

func IsAuthorizationError

func IsAuthorizationError(err error) bool

func IsBadRequest

func IsBadRequest(err error) bool

func IsBadRequestError

func IsBadRequestError(err error) bool

func IsChecksumError

func IsChecksumError(err error) bool

func IsConcurrentRequestError

func IsConcurrentRequestError(err error) bool

func IsContentLengthError

func IsContentLengthError(err error) bool

func IsContentMD5MismatchError

func IsContentMD5MismatchError(err error) bool

func IsDirectoryDoesNotExistError

func IsDirectoryDoesNotExistError(err error) bool

func IsDirectoryExistsError

func IsDirectoryExistsError(err error) bool

func IsDirectoryNotEmptyError

func IsDirectoryNotEmptyError(err error) bool

func IsDirectoryOperationError

func IsDirectoryOperationError(err error) bool

func IsEmptyResponse

func IsEmptyResponse(err error) bool

func IsEntityExistsError

func IsEntityExistsError(err error) bool

func IsInUseError

func IsInUseError(err error) bool

func IsInternalError

func IsInternalError(err error) bool

func IsInvalidArgument

func IsInvalidArgument(err error) bool

func IsInvalidArgumentError

func IsInvalidArgumentError(err error) bool

func IsInvalidAuthTokenError

func IsInvalidAuthTokenError(err error) bool

func IsInvalidCredentials

func IsInvalidCredentials(err error) bool

func IsInvalidCredentialsError

func IsInvalidCredentialsError(err error) bool

func IsInvalidDurabilityLevelError

func IsInvalidDurabilityLevelError(err error) bool

func IsInvalidHeader

func IsInvalidHeader(err error) bool

func IsInvalidJobError

func IsInvalidJobError(err error) bool

func IsInvalidKeyIdError

func IsInvalidKeyIdError(err error) bool

func IsInvalidLimitError

func IsInvalidLimitError(err error) bool

func IsInvalidLinkError

func IsInvalidLinkError(err error) bool

func IsInvalidSignatureError

func IsInvalidSignatureError(err error) bool

func IsInvalidUpdateError

func IsInvalidUpdateError(err error) bool

func IsInvalidVersion

func IsInvalidVersion(err error) bool

func IsJobNotFoundError

func IsJobNotFoundError(err error) bool

func IsJobStateError

func IsJobStateError(err error) bool

func IsKeyDoesNotExistError

func IsKeyDoesNotExistError(err error) bool

func IsLinkNotFoundError

func IsLinkNotFoundError(err error) bool

func IsLinkNotObjectError

func IsLinkNotObjectError(err error) bool

func IsLinkRequiredError

func IsLinkRequiredError(err error) bool

func IsMissingParameter

func IsMissingParameter(err error) bool

func IsNotAcceptableError

func IsNotAcceptableError(err error) bool

func IsNotAuthorized

func IsNotAuthorized(err error) bool

func IsNotEnoughSpaceError

func IsNotEnoughSpaceError(err error) bool

func IsParentNotDirectoryError

func IsParentNotDirectoryError(err error) bool

func IsPreSignedRequestError

func IsPreSignedRequestError(err error) bool

func IsPreconditionFailedError

func IsPreconditionFailedError(err error) bool

func IsRequestEntityTooLargeError

func IsRequestEntityTooLargeError(err error) bool

func IsRequestMoved

func IsRequestMoved(err error) bool

func IsRequestThrottled

func IsRequestThrottled(err error) bool

func IsRequestTooLarge

func IsRequestTooLarge(err error) bool

func IsResourceFound

func IsResourceFound(err error) bool

func IsResourceNotFound

func IsResourceNotFound(err error) bool

func IsResourceNotFoundError

func IsResourceNotFoundError(err error) bool

func IsRootDirectoryError

func IsRootDirectoryError(err error) bool

func IsSSLRequiredError

func IsSSLRequiredError(err error) bool

func IsServiceUnavailableError

func IsServiceUnavailableError(err error) bool

func IsSpecificError

func IsSpecificError(myError error, errorCode string) bool

func IsSpecificStatusCode

func IsSpecificStatusCode(myError error, statusCode int) bool

func IsStatusNotFoundCode

func IsStatusNotFoundCode(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

func IsUploadTimeoutError

func IsUploadTimeoutError(err error) bool

func IsUserDoesNotExistError

func IsUserDoesNotExistError(err error) bool

Types

type APIError

type APIError struct {
	StatusCode int
	Code       string `json:"code"`
	Message    string `json:"message"`
}

APIError represents an error code and message along with the status code of the HTTP request which resulted in the error message. Error codes used by the Triton API are listed at https://apidocs.joyent.com/cloudapi/#cloudapi-http-responses Error codes used by the Manta API are listed at https://apidocs.joyent.com/manta/api.html#errors

func (APIError) Error

func (e APIError) Error() string

Error implements interface Error on the APIError type.

type ClientError

type ClientError struct {
	StatusCode int
	Code       string `json:"code"`
	Message    string `json:"message"`
}

ClientError represents an error code and message returned when connecting to the triton-go client

func (ClientError) Error

func (e ClientError) Error() string

Error implements interface Error on the ClientError type.

Jump to

Keyboard shortcuts

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