cloudstorageerror

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

cloudstorageerror

This repository was created to manage errors in Object Storage provided by CSP.

Environment

  • Go : 1.21.3

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.

type Provider

type Provider int
const (
	S3 Provider = iota
	AZblob
)

Jump to

Keyboard shortcuts

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