errors

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestError

type BadRequestError struct {
	ErrMsg string
}

BadRequestError is used for errors that should be translated to a bad request, for example as an illegal TxId.

func (*BadRequestError) Error

func (c *BadRequestError) Error() string

type ClosedError

type ClosedError struct {
	ErrMsg string
}

ClosedError is used when a blocking operation aborted because a component closed, or when an operation is performed on a component that is already closed.

func (*ClosedError) Error

func (c *ClosedError) Error() string

type DuplicateTxIDError

type DuplicateTxIDError struct {
	TxID string
}

DuplicateTxIDError is an error to denote that a transaction has a duplicate txID

func (*DuplicateTxIDError) Error

func (d *DuplicateTxIDError) Error() string

type NotFoundErr

type NotFoundErr struct {
	Message string
}

func (*NotFoundErr) Error

func (e *NotFoundErr) Error() string

type NotLeaderError

type NotLeaderError struct {
	LeaderID       uint64 // RaftID of the leader
	LeaderHostPort string // The leader's node host:port for client request redirect
}

NotLeaderError is an error that denotes that the current node is not the cluster leader. The error carries the identity of the leader if it is known (>0), or 0 if it is not.

func (*NotLeaderError) Error

func (n *NotLeaderError) Error() string

func (*NotLeaderError) GetLeaderHostPort

func (n *NotLeaderError) GetLeaderHostPort() string

func (*NotLeaderError) GetLeaderID

func (n *NotLeaderError) GetLeaderID() uint64

type PermissionErr

type PermissionErr struct {
	ErrMsg string
}

func (*PermissionErr) Error

func (e *PermissionErr) Error() string

type ServerRestrictionError added in v0.2.4

type ServerRestrictionError struct {
	ErrMsg string
}

func (*ServerRestrictionError) Error added in v0.2.4

func (c *ServerRestrictionError) Error() string

type TimeoutErr

type TimeoutErr struct {
	ErrMsg string
}

func (*TimeoutErr) Error

func (t *TimeoutErr) Error() string

Jump to

Keyboard shortcuts

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