Versions in this module Expand all Collapse all v0 v0.1.1 Apr 18, 2023 v0.1.0 Apr 15, 2023 Changes in this version + func Equals(left, right error) bool + func Log(log *zap.SugaredLogger, err error) + func NewError(err error, msg string, code Code) error + func NewFailure(err error, f Failure) error + func NewRequestValidationFailure(desc string, data map[string]interface{}) error + func NewResponseValidationFailure(desc string, data map[string]interface{}) error + func NewToolkitFailure(err error, desc string) error + type Class uint32 + const ErrorClass + const FailureClass + type Code uint32 + const AdminAPIServiceBadRequestCode + const AdminAPIServiceUnavailableErrorCode + const ColangAPIServiceBadRequestCode + const ColangAPIServiceUnavailableErrorCode + const CryptoDecryptErrorCode + const CryptoEncryptErrorCode + const CryptoGenerationErrorCode + const DefaultCryptoErrorCode + const DefaultErrorCode + const EntityAlreadyExistsFailureCode + const EntityNotFoundFailureCode + const ExtractIPAddressFromRequestFailureCode + const HTTPMethodNotAllowedFailureCode + const IncorrectTokenFormatFailureCode + const NotImplementedErrorCode + const OAuthManagementAPIBadRequestCode + const OAuthManagementAPIServiceUnavailableErrorCode + const PostgreSQLErrorCode + const RSAKeyFilesNotFoundErrorCode + const RedisErrorCode + const RequestValidationFailureCode + const ResponseValidationFailureCode + const RoleForbiddenFailureCode + const SecretsManagementAPBadRequestCode + const SecretsManagementAPIServiceUnavailableErrorCode + const TokenIsExpiredFailureCode + const TokenIsInvalidFailureCode + const ToolkitErrorCode + const UserManagementAPIBadRequestCode + const UserManagementAPIServiceUnavailableErrorCode + const WorldAPIServiceBadRequestCode + const WorldAPIServiceUnavailableErrorCode + func (c Code) UInt32() uint32 + type CustomError struct + Class Class + Err Error + ExtendedErr *CustomError + Fail Failure + func Cast(err error) *CustomError + func CastStrict(err error) *CustomError + func (ce *CustomError) Error() string + type Error struct + Code Code + Message string + type Failure struct + Code Code + Data map[string]interface{} + Description string + Message string + StatusCode int