Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudStorageError ¶
type CloudStorageError struct {
Code string `xml:"Code" json:"code"` // Error code
Message string `xml:"Message" json:"message"` // Error message
// contains filtered or unexported fields
}
CloudStorageError is a custom error struct for representing errors in a cloud environment.
func NewCloudStorageError ¶
func NewCloudStorageError(err error, provider Provider) *CloudStorageError
NewCloudStorageError creates a new instance of CloudStorageError with the given code and message.
func (*CloudStorageError) ErrCode ¶
func (ce *CloudStorageError) ErrCode() string
Returns the error code.
func (*CloudStorageError) ErrMessage ¶
func (ce *CloudStorageError) ErrMessage() string
Returns the error message.
func (*CloudStorageError) Error ¶
func (ce *CloudStorageError) Error() string
Error implements the error interface for CloudStorageError.