github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/topic/topicreader/errors.go (about)

     1  package topicreader
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/topic/topicreaderinternal"
     7  	"github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors"
     8  )
     9  
    10  // ErrUnexpectedCodec will return if topicreader receive message with unknown codec.
    11  // client side must check error with errors.Is
    12  var ErrUnexpectedCodec = topicreaderinternal.ErrPublicUnexpectedCodec
    13  
    14  // ErrConcurrencyCall return if method on reader called in concurrency
    15  // client side must check error with errors.Is
    16  var ErrConcurrencyCall = xerrors.Wrap(errors.New("ydb: concurrency call denied"))
    17  
    18  // ErrCommitToExpiredSession it is not fatal error and reader can continue work
    19  // client side must check error with errors.Is
    20  var ErrCommitToExpiredSession = topicreaderinternal.PublicErrCommitSessionToExpiredSession