errors

package
v0.0.0-...-aec44c9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClarinetInternalInitFail       = clarinet + internal + initFail
	ClarinetInternalConnectionFail = clarinet + internal + connectionFail
	ClarinetInternalParsingError   = clarinet + internal + parsingError

	ClarinetDriverRequestError       = clarinet + driver + requestError
	ClarinetDriverResponseError      = clarinet + driver + responseError
	ClarinetDriverReceiveError       = clarinet + driver + receiveError
	ClarinetDriverParsingError       = clarinet + driver + parsingError
	ClarinetDriverJsonUnmarshalError = clarinet + driver + jsonUnmarshalError

	ClarinetGraphQLArgumentError      = clarinet + graphql + argumentError
	ClarinetGraphQLRequestError       = clarinet + graphql + requestError
	ClarinetGraphQLSendError          = clarinet + graphql + sendError
	ClarinetGraphQLJsonUnmarshalError = clarinet + graphql + jsonUnmarshalError
	ClarinetGraphQLParsingError       = clarinet + graphql + parsingError
)
View Source
const (
	UUIDGenerationError uint64

	IPAddressError
)
View Source
const (
	FluteInternalInitFail                 = flute + internal + initFail
	FluteInternalOperationFail            = flute + internal + operationFail
	FluteInternalUUIDGenerationError      = flute + internal + UUIDGenerationError
	FluteInternalTimeStampConversionError = flute + internal + timestampConversionError
	FluteInternalIPMIError                = flute + internal + ipmiError

	FluteGrpcArgumentError = flute + grpc + argumentError
	FluteGrpcRequestError  = flute + grpc + requestError

	FluteSQLOperationFail = flute + sql + operationFail
	FluteSQLNoResult      = flute + sql + noResult
	FluteSQLArgumentError = flute + sql + argumentError
)
View Source
const (
	HarpInternalInitFail                 = harp + internal + initFail
	HarpInternalOperationFail            = harp + internal + operationFail
	HarpInternalUUIDGenerationError      = harp + internal + UUIDGenerationError
	HarpInternalTimeStampConversionError = harp + internal + timestampConversionError
	HarpInternalInterfaceLookupError     = harp + internal + interfaceAddrLookupError
	HarpInternalPFError                  = harp + internal + pfError
	HarpInternalDHCPDError               = harp + internal + dhcpdError
	HarpInternalFileError                = harp + internal + fileError
	HarpInternalIfconfigError            = harp + internal + ifconfigError
	HarpInternalIPAddressError           = harp + internal + IPAddressError
	HarpInternalSubnetInUseError         = harp + internal + subnetInUseError
	HarpInternalSubnetNotAllocatedError  = harp + internal + subnetNotAllocatedError
	HarpInternalAdaptiveIPAllocatedError = harp + internal + adaptiveIPAllocatedError

	HarpGrpcArgumentError = harp + grpc + argumentError
	HarpGrpcRequestError  = harp + grpc + requestError

	HarpSQLOperationFail = harp + sql + operationFail
	HarpSQLNoResult      = harp + sql + noResult
	HarpSQLArgumentError = harp + sql + argumentError
)
View Source
const (
	PiccoloInternalInitFail            = piccolo + internal + initFail
	PiccoloInternalConnectionFail      = piccolo + internal + connectionFail
	PiccoloInternalUUIDGenerationError = piccolo + internal + UUIDGenerationError

	PiccoloGrpcRequestError = piccolo + grpc + requestError

	PiccoloGraphQLTimestampConversionError = piccolo + graphql + timestampConversionError
	PiccoloGraphQLArgumentError            = piccolo + graphql + argumentError
	PiccoloGraphQLLoginFailed              = piccolo + graphql + loginFailed
	PiccoloGraphQLTokenGenerationError     = piccolo + graphql + tokenGenerationError
	PiccoloGraphQLTokenExpired             = piccolo + graphql + tokenExpired

	PiccoloMySQLPrepareError = piccolo + sql + prepareError
	PiccoloMySQLExecuteError = piccolo + sql + executeError
)
View Source
const (
	ViolinInternalInitFail                 = violin + internal + initFail
	ViolinInternalOperationFail            = violin + internal + operationFail
	ViolinInternalUUIDGenerationError      = violin + internal + UUIDGenerationError
	ViolinInternalTimeStampConversionError = violin + internal + timestampConversionError
	ViolinInternalCreateServerFailed       = violin + internal + createServerFailed
	ViolinInternalCreateServerRoutineError = violin + internal + createServerRoutineError
	ViolinInternalGetAvailableNodesError   = violin + internal + getAvailableNodesError
	ViolinInternalServerNodePresentError   = violin + internal + serverNodePresentError

	ViolinGrpcArgumentError = violin + grpc + argumentError
	ViolinGrpcRequestError  = violin + grpc + requestError
	ViolinGrpcGetNodesError = violin + grpc + getNodesError

	ViolinSQLOperationFail = violin + sql + operationFail
	ViolinSQLNoResult      = violin + sql + noResult
	ViolinSQLArgumentError = violin + sql + argumentError
)
View Source
const (
	ViolinNoVNCInternalInitFail        uint64 = violinNoVNC + internal + initFail
	ViolinNoVNCInternalConnectionFail  uint64 = violinNoVNC + internal + connectionFail
	ViolinNoVNCInternalParsingError    uint64 = violinNoVNC + internal + parsingError
	ViolinNoVNCInternalDBOperationFail uint64 = violinNoVNC + internal + operationFail

	ViolinNoVNCDriverRequestError       uint64 = violinNoVNC + driver + requestError
	ViolinNoVNCDriverResponseError      uint64 = violinNoVNC + driver + responseError
	ViolinNoVNCDriverReceiveError       uint64 = violinNoVNC + driver + receiveError
	ViolinNoVNCDriverParsingError       uint64 = violinNoVNC + driver + parsingError
	ViolinNoVNCDriverJsonUnmarshalError uint64 = violinNoVNC + driver + jsonUnmarshalError

	ViolinNoVNCGrpcArgumentError      uint64 = violinNoVNC + grpc + argumentError
	ViolinNoVNCGrpcRequestError       uint64 = violinNoVNC + grpc + requestError
	ViolinNoVNCGrpcSendError          uint64 = violinNoVNC + grpc + sendError
	ViolinNoVNCGrpcReceiveError       uint64 = violinNoVNC + grpc + receiveError
	ViolinNoVNCGrpcJsonUnmarshalError uint64 = violinNoVNC + grpc + jsonUnmarshalError
	ViolinNoVNCGrpcParsingError       uint64 = violinNoVNC + grpc + parsingError
	ViolinNoVNCGrpcConnectionFail     uint64 = violinNoVNC + grpc + connectionFail
	ViolinNoVNCGrpcUndefinedError     uint64 = violinNoVNC + grpc + undefinedError
	ViolinNoVNCGrpcOperationFail      uint64 = violinNoVNC + grpc + operationFail
)

Variables

This section is empty.

Functions

func SetErrLogger

func SetErrLogger(l *log.Logger)

Types

type HccError

type HccError struct {
	ErrCode uint64 `json:"errcode"` // decimal error code
	ErrText string `json:"errtext"` // error string
}

func NewHccError

func NewHccError(errorCode uint64, errorText string) *HccError

func (HccError) Code

func (e HccError) Code() uint64

func (HccError) Error

func (e HccError) Error() string

func (HccError) Fatal

func (e HccError) Fatal()

func (HccError) New

func (e HccError) New() error

func (HccError) Println

func (e HccError) Println()

func (HccError) Text

func (e HccError) Text() string

func (HccError) ToString

func (e HccError) ToString() string

type HccErrorStack

type HccErrorStack []HccError

func NewHccErrorStack

func NewHccErrorStack(errList ...*HccError) *HccErrorStack

func ReturnHccEmptyError

func ReturnHccEmptyError() HccErrorStack

ReturnHccEmptyError: Return dummy error as HccErrorStack

func ReturnHccError

func ReturnHccError(errCode uint64, errText string) HccErrorStack

ReturnHccError: Get error code and error string and return as HccErrorStack

func (*HccErrorStack) ConvertReportForm

func (es *HccErrorStack) ConvertReportForm() *HccErrorStack

func (*HccErrorStack) Dump

func (es *HccErrorStack) Dump() *HccError

Dump() will clean stack

func (*HccErrorStack) Len

func (es *HccErrorStack) Len() int

func (*HccErrorStack) Pop

func (es *HccErrorStack) Pop() *HccError

func (*HccErrorStack) Push

func (es *HccErrorStack) Push(err *HccError)

Jump to

Keyboard shortcuts

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