errors

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	Error() string
	Code() ErrorCode
}

func NewError

func NewError(code ErrorCode, err error) Error

func NewErrorCode

func NewErrorCode(code ErrorCode) Error

func NewErrorCodeMsg

func NewErrorCodeMsg(code ErrorCode, msg ...interface{}) Error

type ErrorCode

type ErrorCode string
const (
	WrongExpectedStreamRevisionErr   ErrorCode = "WrongExpectedStreamRevisionErr"
	FailedPreconditionErr            ErrorCode = "FailedPreconditionErr"
	PermissionDeniedErr              ErrorCode = "PermissionDeniedErr"
	DeadlineExceededErr              ErrorCode = "DeadlineExceededErr"
	CanceledErr                      ErrorCode = "CanceledErr"
	UnauthenticatedErr               ErrorCode = "UnauthenticatedErr"
	StreamNotFoundErr                ErrorCode = "StreamNotFoundErr"
	UnknownErr                       ErrorCode = "UnknownErr"
	StreamDeletedErr                 ErrorCode = "StreamDeletedErr"
	NotLeaderErr                     ErrorCode = "NotLeaderErr"
	MaximumAppendSizeExceededErr     ErrorCode = "MaximumAppendSizeExceededErr"
	UserNotFoundErr                  ErrorCode = "UserNotFoundErr"
	EndOfStream                      ErrorCode = "EndOfStream"
	FatalError                       ErrorCode = "FatalError"
	MaximumSubscriberCountReached    ErrorCode = "MaximumSubscriberCountReached"
	PersistentSubscriptionDroppedErr ErrorCode = "PersistentSubscriptionDroppedErr"
	ScavengeNotFoundErr              ErrorCode = "ScavengeNotFoundErr"
	InvalidArgumentErr               ErrorCode = "InvalidArgumentErr"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL