Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingNamespace = errors.New("missing required parameter: namespace") ErrNamespaceNotExists = errors.New("namespace is not found on the current server") ErrInvalidMetadata = errors.New("bad metadata in request") ErrMissingNamespaceInMetadata = errors.New("missing required metadata: x-namespace") ErrStreamTimeout = errors.New("stream timeout: no records received within dynamic threshold seconds") ErrKeyNotFound = status.Error(codes.NotFound, "key not found") ErrPutChunkPrecondition = errors.New("invalid sequence: StartMarker must be sent before sending chunks or calling CommitMarker") ErrPutChunkCheckSumMismatch = errors.New("invalid checksum: checksum mismatch") ErrPutChunkAlreadyCommited = errors.New("put chunk stream already commited") ErrClientMaxRetriesExceeded = errors.New("max retries exceeded") )
Functions ¶
func ToGRPCError ¶
func ToGRPCError(namespace string, reqID middleware.RequestID, method middleware.Method, err error) error
ToGRPCError Convert business error to gRPC error. Custom types to avoid ordering issue while calling the function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.