Documentation
¶
Index ¶
- Constants
- Variables
- func ErrAssert(errCode string, err error) bool
- func ErrRequestID(err error) string
- func ErrorCodeIs(err error, codes ...string) bool
- func ErrorIs(err error, fns ...CheckErr) bool
- func IsEfloCode(err error, code int) bool
- func IsURLError(err error) bool
- func WarpError(err error) error
- func WarpError2(err error, extra ...string) error
- type CheckErr
- type E
- type E2
- type EFLOCode
Constants ¶
View Source
const ( ErrInternalError = "InternalError" ErrForbidden = "Forbidden.RAM" // InvalidVSwitchIDIPNotEnough AssignPrivateIpAddresses const error message // Reference: https://help.aliyun.com/document_detail/85917.html InvalidVSwitchIDIPNotEnough = "InvalidVSwitchId.IpNotEnough" QuotaExceededPrivateIPAddress = "QuotaExceeded.PrivateIpAddress" // ErrEniPerInstanceLimitExceeded CreateNetworkInterfaces const error message // Reference: https://help.aliyun.com/document_detail/85917.html ErrEniPerInstanceLimitExceeded = "EniPerInstanceLimitExceeded" // ErrSecurityGroupInstanceLimitExceed CreateNetworkInterfaces const error message // Reference: https://help.aliyun.com/document_detail/85917.html ErrSecurityGroupInstanceLimitExceed = "SecurityGroupInstanceLimitExceed" // ErrInvalidIPIPUnassigned see https://help.aliyun.com/document_detail/85919.html // for API UnassignPrivateIpAddresses ErrInvalidIPIPUnassigned = "InvalidIp.IpUnassigned" // ErrInvalidENINotFound .. // for API UnassignPrivateIpAddresses DetachNetworkInterface ErrInvalidENINotFound = "InvalidEniId.NotFound" ErrInvalidEcsIDNotFound = "InvalidEcsId.NotFound" ErrIPv4CountExceeded = "InvalidOperation.Ipv4CountExceeded" ErrIPv6CountExceeded = "InvalidOperation.Ipv6CountExceeded" // ErrInvalidENIState .. // for API DeleteNetworkInterface ErrInvalidENIState = "InvalidOperation.InvalidEniState" // ErrInvalidAllocationIDNotFound InvalidAllocationId.NotFound EIP not found ErrInvalidAllocationIDNotFound = "InvalidAllocationId.NotFound" // ErrThrottling . ErrThrottling = "Throttling" ErrOperationConflict = "Operation.Conflict" ErrEfloPrivateIPQuotaExecuted = 1013 ErrEfloResourceNotFound = 1011 )
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
define well known err
Functions ¶
func ErrorCodeIs ¶ added in v1.8.4
func IsEfloCode ¶ added in v1.13.7
func IsURLError ¶ added in v1.8.4
IsURLError if there is conn problem
func WarpError2 ¶ added in v1.14.3
Types ¶
Click to show internal directories.
Click to hide internal directories.