Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //UnknownErr default sentinel error for storage layer UnknownErr = StorageErr{/* contains filtered or unexported fields */} //ConflictErr can used for contraint violations ConflictErr = StorageErr{/* contains filtered or unexported fields */} //NoRowsErr can be used to represent not found/no result NoRowsErr = StorageErr{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
type StorageErr ¶
type StorageErr struct {
// contains filtered or unexported fields
}
StorageErr implements error interface. Used for storage layer. Consumers can check for this error type to inspect storage errors.
func (StorageErr) Error ¶
func (e StorageErr) Error() string
func (StorageErr) GRPCStatus ¶
func (e StorageErr) GRPCStatus() *status.Status
GRPCStatus this is used by gateway interceptor to return appropriate http status code and message
func (StorageErr) Is ¶
func (e StorageErr) Is(err error) bool
func (StorageErr) Unwrap ¶
func (e StorageErr) Unwrap() error
func (StorageErr) WithErr ¶
func (e StorageErr) WithErr(err error, name string) StorageErr
WithErr convenience function to override sentinel errors
Click to show internal directories.
Click to hide internal directories.