Documentation ¶
Index ¶
- Constants
- Variables
- func CombineErrors(errs ...error) error
- func IsAKVError(err error) bool
- func IsAWSError(err error) bool
- func IsAlreadyExistsError(err error) bool
- func IsConfigError(err error) bool
- func IsCryptoOperationError(err error) bool
- func IsDependencyFailureError(err error) bool
- func IsEncodingError(err error) bool
- func IsForbiddenError(err error) bool
- func IsHashicorpVaultError(err error) bool
- func IsHealthcheckError(err error) bool
- func IsInvalidFormatError(err error) bool
- func IsInvalidParameterError(err error) bool
- func IsNotFoundError(err error) bool
- func IsNotImplementedError(err error) bool
- func IsNotSupportedError(err error) bool
- func IsPostgresError(err error) bool
- func IsStatusConflictError(err error) bool
- func IsTooManyRequestError(err error) bool
- func IsUnauthorizedError(err error) bool
- type Error
- func AKVError(format string, a ...interface{}) *Error
- func AWSError(format string, a ...interface{}) *Error
- func AlreadyExistsError(format string, a ...interface{}) *Error
- func BlockchainNodeError(format string, a ...interface{}) *Error
- func ConfigError(format string, a ...interface{}) *Error
- func CryptoOperationError(format string, a ...interface{}) *Error
- func DependencyFailureError(format string, a ...interface{}) *Error
- func EncodingError(format string, a ...interface{}) *Error
- func Errorf(code, format string, a ...interface{}) *Error
- func ForbiddenError(format string, a ...interface{}) *Error
- func FromError(err interface{}) *Error
- func HashicorpVaultError(format string, a ...interface{}) *Error
- func HealthcheckError(format string, a ...interface{}) *Error
- func InvalidFormatError(format string, a ...interface{}) *Error
- func InvalidParameterError(format string, a ...interface{}) *Error
- func NotFoundError(format string, a ...interface{}) *Error
- func NotImplementedError(format string, a ...interface{}) *Error
- func NotSupportedError(format string, a ...interface{}) *Error
- func PostgresError(format string, a ...interface{}) *Error
- func StatusConflictError(format string, a ...interface{}) *Error
- func TooManyRequestError(format string, a ...interface{}) *Error
- func UnauthorizedError(format string, a ...interface{}) *Error
Constants ¶
const ( Connection = "CN000" AKV = "CN100" HashicorpVault = "CN200" AWS = "CN300" Healthcheck = "CN400" BlockchainNode = "CN500" Postgres = "CN600" InvalidRequest = "IR000" NotSupported = "IR200" NotImplemented = "IR300" InvalidFormat = "IR400" InvalidParameter = "IR500" Forbidden = "IR600" TooManyRequest = "IR700" )
const ( Data = "DA000" Encoding = "DA100" CryptoOperation = "DA200" )
const ( Internal = "IN000" Config = "IN100" DependencyFailure = "IN200" )
const ( Storage = "ST000" NotFound = "ST100" AlreadyExists = "ST200" StatusConflict = "ST300" )
Variables ¶
var ErrNotImplemented = NotImplementedError("this operation is not yet implemented. Please contact your administrator")
nolint
var ErrNotSupported = NotSupportedError("this operation is not supported. Please contact your administrator")
Functions ¶
func CombineErrors ¶
func IsAKVError ¶
IsAKVError indicate whether an error is an AKV client connection error
func IsAWSError ¶
IsAWSError indicate whether an error is an AWS client connection error
func IsAlreadyExistsError ¶
IsAlreadyExistsError indicate whether an error is an already exists error
func IsConfigError ¶
func IsCryptoOperationError ¶
IsCryptoOperationError indicate whether an error is a CryptoOperationError error
func IsEncodingError ¶
IsEncodingError indicate whether an error is a EncodingError error
func IsForbiddenError ¶
func IsHashicorpVaultError ¶
IsHashicorpVaultError indicate whether an error is a Hashicorp Vault connection error
func IsHealthcheckError ¶
IsHealthcheckError indicate whether an error is a healthcheck error
func IsInvalidFormatError ¶
IsInvalidFormatError indicate whether an error is an invalid format error
func IsInvalidParameterError ¶
IsInvalidParameterError indicate whether an error is an invalid parameter error
func IsNotFoundError ¶
IsNotFoundError indicate whether an error is a no Data found error
func IsNotImplementedError ¶
func IsNotSupportedError ¶
func IsPostgresError ¶
IsPostgresError indicate whether an error is a Postgres client connection error
func IsStatusConflictError ¶
IsStatusConflictError indicate whether an error is a status conflict error
func IsTooManyRequestError ¶
func IsUnauthorizedError ¶
Types ¶
type Error ¶
func AlreadyExistsError ¶
AlreadyExistsError indicates a resource already exists
func BlockchainNodeError ¶
BlockchainNodeError is raised when failing to perform a call to the Ethereum node
func ConfigError ¶
func CryptoOperationError ¶
CryptoOperationError are raised when failing to perform a crypto operation
func DependencyFailureError ¶
func EncodingError ¶
EncodingError are raised when failing to decode a message
func ForbiddenError ¶
ForbiddenError is raised when the user cannot perform a given operation (missing permission)
func HashicorpVaultError ¶
HashicorpVaultError is raised when failing to perform on Hashicorp Vault
func HealthcheckError ¶
HealthcheckError is raised when failing to perform a health check
func InvalidFormatError ¶
InvalidFormatError is raised when a Data does not match an expected format
func InvalidParameterError ¶
InvalidParameterError is raised when a provided parameter invalid
func NotFoundError ¶
NotFoundError is raised when accessing a missing Data
func NotImplementedError ¶
func NotSupportedError ¶
NotSupportedError is raised when operation is not supported
func PostgresError ¶
PostgresError is raised when failing to perform on Postgres client
func StatusConflictError ¶
StatusConflictError indicate a status conflict
func TooManyRequestError ¶
func UnauthorizedError ¶
UnauthorizedError is raised when authentication credentials are invalid