errno

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	HttpBadRequest            = 6400
	HttpUnauthorized          = 6401
	HttpDatabaseNotFound      = 6404
	HttpForbidden             = 6403
	HttpRequestEntityTooLarge = 6413
)

http

View Source
const (
	InternalError      = 9001
	InvalidDataType    = 9002
	RecoverPanic       = 9003
	UnknownMessageType = 9004
	InvalidBufferSize  = 9005
	ShortBufferSize    = 9006

	// BuiltInError errors returned by built-in functions
	BuiltInError = 9007

	// ThirdPartyError errors returned by third-party packages
	ThirdPartyError = 9008

	ShortWrite = 9009
	ShortRead  = 9010
)

common error codes

View Source
const (
	NoConnectionAvailable = 1001
	NoNodeAvailable       = 1002
	NodeConflict          = 1003
	SelectClosedConn      = 1004
	UnsupportedFlags      = 1005
	InvalidHeaderSize     = 1006
	InvalidHeader         = 1007
	DuplicateSession      = 1008
	InvalidDataSize       = 1009
	TooManySessions       = 1010
	ConnectionClosed      = 1011
	SessionSelectTimeout  = 1012
	DuplicateEvent        = 1013
	InvalidPublicKey      = 1014
	ShortPublicKey        = 1015
	UnsupportedSignAlgo   = 1016
	CertificateExpired    = 1017
	PoolClosed            = 1018
	DuplicateConnection   = 1019
	NoReactorHandler      = 1020
	ResponserClosed       = 1021
	InvalidAddress        = 1022
	BadListen             = 1023
	FailedConvertToCodec  = 1024
	OpenSessionTimeout    = 1025
	RemoteError           = 1206
	DataACKTimeout        = 1027
	InvalidTLSConfig      = 1208
)

network module error codes

View Source
const (
	PipelineExecuting            = 1101
	LogicPlanNotInit             = 1102
	NotSupportUnmarshal          = 1103
	ProcessorNotFound            = 1104
	MissInputProcessor           = 1105
	MissOutputProcessor          = 1106
	MissInputTransform           = 1107
	CyclicVertex                 = 1108
	CyclicGraph                  = 1109
	UnsupportedLogicalPlan       = 1110
	UnsupportedDataType          = 1111
	LogicalPlanBuildFail         = 1112
	BucketLacks                  = 1113
	CreatePipelineExecutorFail   = 1114
	LogicalPlainBuildFailInShard = 1115
)

query engine error codes

View Source
const (
	CreateIndexFailPointRowType        = 2101
	InvalidDataDir                     = 2102
	InvalidMetaDir                     = 2103
	InvalidImmTableMaxMemoryPercentage = 2104
	InvalidMaxConcurrentCompactions    = 2105
	InvalidMaxFullCompactions          = 2106
	InvalidShardMutableSizeLimit       = 2107
	InvalidNodeMutableSizeLimit        = 2108
	UnrecognizedEngine                 = 2109
	RecoverFileFailed                  = 2110
	NotAllTsspFileOpenSuccess          = 2111
	NotAllTsspFileLoadSuccess          = 2112
	ProcessCompactLogFailed            = 2113
	LoadFilesFailed                    = 2114
	CreateFileFailed                   = 2115
	RenameFileFailed                   = 2116
	WriteFileFailed                    = 2117
	RemoveFileFailed                   = 2118
	ReadFileFailed                     = 2119
	OpenFileFailed                     = 2120
	MapFileFailed                      = 2121
	CloseFileFailed                    = 2122
	ReadWalFileFailed                  = 2123
	DecompressWalRecordFailed          = 2124
	WalRecordHeaderCorrupted           = 2125
	WalRecordUnmarshalFailed           = 2126
	CompactPanicFail                   = 2127
)

store engine error codes

View Source
const (
	SeriesIdIsZero     = 2201
	DiffLengthOfColVal = 2202
	DiffSchemaType     = 2203
	MergeCanceled      = 2204
)

merge out of order

View Source
const (
	UnsupportedExprType       = 3001
	UnsupportedToFillPrevious = 3002
)

query engine error codes

View Source
const (
	FieldTypeConflict        = 4001
	DatabaseNotFound         = 4002
	DataNodeNotFound         = 4003
	DataNoAlive              = 4004
	PtNotFound               = 4005
	ShardMetaNotFound        = 4006
	DataIsOlder              = 4007
	DatabaseIsBeingDelete    = 4008
	MetaIsNotLeader          = 4009
	RaftIsNotOpen            = 4010
	ShardKeyConflict         = 4011
	ErrMeasurementNotFound   = 4012
	NeedChangeStore          = 4013
	StateMachineIsNotRunning = 4014
	ConflictWithEvent        = 4015
	EventIsInterrupted       = 4016
	EventNotFound            = 4017
	PtChanged                = 4018
	OpIdIsInvalid            = 4019
)

meta

View Source
const (
	InvalidPwdLen      = 4101
	InvalidWeakPwd     = 4102
	InvalidPwdLooks    = 4103
	InvalidPwdComplex  = 4104
	InvalidUsernameLen = 4105
)

meta-client process

View Source
const (
	WriteNoShardGroup               = 5001
	WriteNoShardKey                 = 5002
	WritePointMustHaveAField        = 5003
	WritePointInvalidTimeField      = 5004
	WriteInvalidPoint               = 5005
	WritePointMustHaveAMeasurement  = 5006
	WritePointShouldHaveAllShardKey = 5007
	WritePointMap2Shard             = 5008

	// WriteMapMetaShardInfo abc
	WriteMapMetaShardInfo = 5009

	ErrUnmarshalPoints         = 5010
	ErrWriteReadonly           = 5011
	DuplicateField             = 5012
	WritePointOutOfRP          = 5013
	WritePointShardKeyTooLarge = 5014
	EngineClosed               = 5015
)

write process

View Source
const (
	NodeSql    = 1
	NodeMeta   = 2
	NodeStore  = 3
	NodeServer = 4
)
View Source
const (
	ModuleUnknown       = 0
	ModuleQueryEngine   = 1
	ModuleWrite         = 2
	ModuleIndex         = 3
	ModuleMeta          = 4
	ModuleMetaRaft      = 5
	ModuleNetwork       = 6
	ModuleCompact       = 7
	ModuleMerge         = 8
	ModuleStorageEngine = 9
	ModuleHA            = 10
	ModuleHTTP          = 11
	ModuleMetaClient    = 12
	ModuleTssp          = 13
	ModuleCoordinator   = 14
	ModuleWal           = 15
	ModuleStat          = 16
	ModuleShard         = 17
)
View Source
const (
	LevelNotice = 0
	LevelWarn   = 1
	LevelFatal  = 2
)
View Source
const (
	ConvertToBinaryExprFailed = 6001
)

index

View Source
const (
	WatchFileTimeout = 7001
)

Variables

This section is empty.

Functions

func Equal

func Equal(err error, errno Errno) bool

func SetNode

func SetNode(node Node)

Types

type Errno

type Errno uint16

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Convert

func Convert(err error, errno Errno, module Module, level Level) *Error

func NewBuiltIn

func NewBuiltIn(err error, module Module) *Error

func NewError

func NewError(errno Errno, args ...interface{}) *Error

func NewRemote

func NewRemote(err string, errno Errno) *Error

func NewThirdParty

func NewThirdParty(err error, module Module) *Error

func (*Error) Errno

func (s *Error) Errno() Errno

func (*Error) Error

func (s *Error) Error() string

func (*Error) Level

func (s *Error) Level() Level

func (*Error) Module

func (s *Error) Module() Module

func (*Error) SetErrno

func (s *Error) SetErrno(errno Errno) *Error

func (*Error) SetModule

func (s *Error) SetModule(module Module) *Error

func (*Error) SetToFatal

func (s *Error) SetToFatal() *Error

func (*Error) SetToNotice

func (s *Error) SetToNotice() *Error

func (*Error) SetToWarn

func (s *Error) SetToWarn() *Error

func (*Error) Stack

func (s *Error) Stack() []byte

type Level

type Level uint8

func (Level) LogStack

func (l Level) LogStack() bool

type Message

type Message struct {
	// contains filtered or unexported fields
}

type Module

type Module int8

type Node

type Node int8

func GetNode

func GetNode() Node

Jump to

Keyboard shortcuts

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