Documentation
¶
Index ¶
- func ConvertingType(err error, from, to string) error
- func DoesExist(resource, id string) error
- func DoesNotExist(resource, id string) error
- func DuplicateField(fieldName, fieldValue string) error
- func FailedToBeginTx(err error) error
- func FailedToCommitTx(err error) error
- func FailedToDecrypt(err error) error
- func FailedToDelete(resource string, err error) error
- func FailedToEncrypt(err error) error
- func FailedToExecuteTemplate(err error) error
- func FailedToFind(resource string, err error) error
- func FailedToGetToken(err error) error
- func FailedToRollbackTx(err error) error
- func FailedToSave(resource string, err error) error
- func FailedToUpdate(resource string, err error) error
- func FromJSONMarshal(err error, obj string) error
- func FromJSONUnMarshal(err error, obj string) error
- func FromProtoMarshal(err error, obj string) error
- func FromProtoUnMarshal(err error, obj string) error
- func IncorrectVal(val string) error
- func MissingField(field string) error
- func NilObject(object string) error
- func Panic(err error)
- func ReadFailed(err error) error
- func RedisCmdFailed(err error, command string) error
- func SQLQueryFailed(err error, queryType string) error
- func TokenCredentialNotMatching(cred string) error
- func WrapError(err error) error
- func WrapErrorWithCode(code codes.Code, err error) error
- func WrapErrorWithCodeAndMsg(code codes.Code, err error, msg string) error
- func WrapErrorWithCodeAndMsgFunc(msg string) func(codes.Code, error) error
- func WrapErrorWithMsg(err error, msg string) error
- func WrapErrorWithMsgFunc(msg string) func(error) error
- func WrapMessage(code codes.Code, msg string) error
- func WrapMessagef(code codes.Code, format string, args ...interface{}) error
- func WrapUserError(err error, userMsg string) error
- func WriteFailed(err error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertingType ¶
ConvertingType wraps error that occured during type assertion to grpc status error
func DoesNotExist ¶
DoesNotExist returns status error indicating that the resource does not exist
func DuplicateField ¶
DuplicateField returns a status error for a duplicate field
func FailedToBeginTx ¶
FailedToBeginTx wraps error returned from failed transaction to a status error
func FailedToCommitTx ¶
FailedToCommitTx wraps error returned from failed commit of transaction to a status error
func FailedToDecrypt ¶
FailedToDecrypt is status error from failed decryption operation
func FailedToDelete ¶
FailedToDelete wraps error returned from failed delete operation to a status error
func FailedToEncrypt ¶
FailedToEncrypt is status error from failed encryption operation
func FailedToExecuteTemplate ¶
FailedToExecuteTemplate returns a status error for a failed template execution
func FailedToFind ¶
FailedToFind wraps error returned from failed find operation to a status error
func FailedToGetToken ¶
FailedToGetToken wraps the error returned while getting token to a status error
func FailedToRollbackTx ¶
FailedToRollbackTx wraps error returned from failed rollback of transaction to a status error
func FailedToSave ¶
FailedToSave is status error returned from failed save operation
func FailedToUpdate ¶
FailedToUpdate wraps error returned from failed update operation to a status error
func FromJSONMarshal ¶
FromJSONMarshal wraps error returned from json.Marshal to a status error
func FromJSONUnMarshal ¶
FromJSONUnMarshal wraps error returned from json.Unmarshal to a status error
func FromProtoMarshal ¶
FromProtoMarshal wraps error returned from proto.Marshal to a status error
func FromProtoUnMarshal ¶
FromProtoUnMarshal wraps error returned from proto.Unmarshal to a status error
func IncorrectVal ¶
IncorrectVal returns a status error indicating val was incorrect
func MissingField ¶
MissingField returns a status error caused by a missing message field
func ReadFailed ¶
ReadFailed returns a status error for a read operation error
func RedisCmdFailed ¶
RedisCmdFailed wraps error returned from a failed redis command to a status error
func SQLQueryFailed ¶
SQLQueryFailed wraps a sql query error to a status error
func TokenCredentialNotMatching ¶
TokenCredentialNotMatching creates a status error caused by mismatch in token credential
func WrapErrorWithCode ¶
WrapErrorWithCode is a wraps generic error to a status error with provided code
func WrapErrorWithCodeAndMsg ¶
WrapErrorWithCodeAndMsg wraps generic error to a status error with provided code and msg
func WrapErrorWithCodeAndMsgFunc ¶
WrapErrorWithCodeAndMsgFunc is a common message wrapper for WrapErrorWithCodeAndMsg
func WrapErrorWithMsg ¶
WrapErrorWithMsg is a wraps generic error to a status error with code and msg formt
func WrapErrorWithMsgFunc ¶
WrapErrorWithMsgFunc is a common message wrapper for WrapErrorWithMsg
func WrapMessage ¶
WrapMessage is a wraps message provided to a status error
func WrapMessagef ¶
WrapMessagef is a wraps message provided to a status error
func WrapUserError ¶
WrapUserError adds user facing message as details to error
func WriteFailed ¶
WriteFailed returns a status error for a write operation error
Types ¶
This section is empty.