hzerrors

package
v1.0.0-preview.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientOffline             = errors.New("client offline")
	ErrClientNotAllowedInCluster = errors.New("client not allowed in cluster")
	ErrAddressNotFound           = errors.New("address not found")
	ErrConfigInvalidStatsPeriod  = errors.New("invalid stats period")
)

Functions

This section is empty.

Types

type HazelcastAuthenticationError

type HazelcastAuthenticationError struct {
	*HazelcastErrorType
}

HazelcastAuthenticationError is returned when there is an Authentication failure, e.g., credentials from client is not valid.

func NewHazelcastAuthenticationError

func NewHazelcastAuthenticationError(message string, cause error) *HazelcastAuthenticationError

NewHazelcastAuthenticationError returns a HazelcastAuthenticationError.

type HazelcastCertificateError

type HazelcastCertificateError struct {
	*HazelcastErrorType
}

HazelcastCertificateError is returned when there is an error in certificates.

func NewHazelcastCertificateError

func NewHazelcastCertificateError(message string, cause error) *HazelcastCertificateError

NewHazelcastCertificateError returns a HazelcastCertificateError.

type HazelcastClientNotActiveError

type HazelcastClientNotActiveError struct {
	*HazelcastErrorType
}

HazelcastClientNotActiveError is returned when Hazelcast client is not active during an invocation.

type HazelcastClientServiceNotFoundError

type HazelcastClientServiceNotFoundError struct {
	*HazelcastErrorType
}

HazelcastClientServiceNotFoundError indicates that a requested client service doesn't exist.

func NewHazelcastClientServiceNotFoundError

func NewHazelcastClientServiceNotFoundError(message string, cause error) *HazelcastClientServiceNotFoundError

NewHazelcastClientServiceNotFoundError returns a HazelcastClientServiceNotFoundError.

type HazelcastConsistencyLostError

type HazelcastConsistencyLostError struct {
	*HazelcastErrorType
}

HazelcastConsistencyLostError is an error that indicates that the consistency guarantees provided by some service has been lost. The exact guarantees depend on the service.

func NewHazelcastConsistencyLostError

func NewHazelcastConsistencyLostError(message string, cause error) *HazelcastConsistencyLostError

NewHazelcastConsistencyLostError returns a HazelcastConsistencyLostError.

type HazelcastEOFError

type HazelcastEOFError struct {
	*HazelcastErrorType
}

HazelcastEOFError is returned when an EOF error occurs.

func NewHazelcastEOFError

func NewHazelcastEOFError(message string, cause error) *HazelcastEOFError

NewHazelcastEOFError returns a HazelcastEOFError.

type HazelcastError

type HazelcastError interface {
	// Error returns the error message.
	Error() string

	// Cause returns the cause of error.
	Cause() error

	// ServerError returns error info from server side.
	ServerError() *ServerError
}

HazelcastError is the general error interface.

func NewHazelcastError

func NewHazelcastError(err *ServerError) HazelcastError

type HazelcastErrorType

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

HazelcastErrorType is the general error struct.

func NewHazelcastErrorType

func NewHazelcastErrorType(message string, cause error) *HazelcastErrorType

NewHazelcastErrorType returns a HazelcastErrorType.

func (*HazelcastErrorType) Cause

func (e *HazelcastErrorType) Cause() error

Cause returns the cause error.

func (*HazelcastErrorType) Error

func (e *HazelcastErrorType) Error() string

Error returns the error message.

func (*HazelcastErrorType) ServerError

func (e *HazelcastErrorType) ServerError() *ServerError

ServerError returns error info from server side. It checks if the cause implements ServerError and if it doesnt it return nil.

type HazelcastIOError

type HazelcastIOError struct {
	*HazelcastErrorType
}

HazelcastIOError is returned when an IO error occurs.

func NewHazelcastIOError

func NewHazelcastIOError(message string, cause error) *HazelcastIOError

NewHazelcastIOError returns a HazelcastIOError.

type HazelcastIllegalArgumentError

type HazelcastIllegalArgumentError struct {
	*HazelcastErrorType
}

HazelcastIllegalArgumentError is returned when a method has been passed an illegal or inappropriate argument.

func NewHazelcastIllegalArgumentError

func NewHazelcastIllegalArgumentError(message string, cause error) *HazelcastIllegalArgumentError

NewHazelcastIllegalArgumentError returns a HazelcastIllegalArgumentError.

type HazelcastIllegalStateError

type HazelcastIllegalStateError struct {
	*HazelcastErrorType
}

HazelcastIllegalStateError is returned when a method has been invoked at an illegal or inappropriate time.

func NewHazelcastIllegalStateError

func NewHazelcastIllegalStateError(message string, cause error) *HazelcastIllegalStateError

NewHazelcastIllegalStateError returns a HazelcastIllegalStateError.

type HazelcastInstanceNotActiveError

type HazelcastInstanceNotActiveError struct {
	*HazelcastErrorType
}

HazelcastInstanceNotActiveError is returned when HazelcastInstance is not active during an invocation.

func NewHazelcastInstanceNotActiveError

func NewHazelcastInstanceNotActiveError(message string, cause error) *HazelcastInstanceNotActiveError

NewHazelcastInstanceNotActiveError returns a HazelcastInstanceNotActiveError.

type HazelcastNilPointerError

type HazelcastNilPointerError struct {
	*HazelcastErrorType
}

HazelcastNilPointerError is returned when a nil argument has been passed to a method.

func NewHazelcastNilPointerError

func NewHazelcastNilPointerError(message string, cause error) *HazelcastNilPointerError

NewHazelcastNilPointerError returns a HazelcastNilPointerError.

type HazelcastNoDataMemberInClusterError

type HazelcastNoDataMemberInClusterError struct {
	*HazelcastErrorType
}

HazelcastNoDataMemberInClusterError is returned when there is no data member in the cluster to assign partitions.

func NewHazelcastNoDataMemberInClusterError

func NewHazelcastNoDataMemberInClusterError(message string, cause error) *HazelcastNoDataMemberInClusterError

NewHazelcastNoDataMemberInClusterError returns a HazelcastNoDataMemberInClusterError.

type HazelcastOperationTimeoutError

type HazelcastOperationTimeoutError struct {
	*HazelcastErrorType
}

HazelcastOperationTimeoutError is returned when an operation times out.

func NewHazelcastOperationTimeoutError

func NewHazelcastOperationTimeoutError(message string, cause error) *HazelcastOperationTimeoutError

NewHazelcastOperationTimeoutError returns a HazelcastOperationTimeoutError.

type HazelcastSerializationError

type HazelcastSerializationError struct {
	*HazelcastErrorType
}

HazelcastSerializationError is returned when an error occurs while serializing/deserializing objects.

func NewHazelcastSerializationError

func NewHazelcastSerializationError(message string, cause error) *HazelcastSerializationError

NewHazelcastSerializationError returns a HazelcastSerializationError.

type HazelcastTargetDisconnectedError

type HazelcastTargetDisconnectedError struct {
	*HazelcastErrorType
}

HazelcastTargetDisconnectedError indicates that an operation is about to be sent to a non existing machine.

func NewHazelcastTargetDisconnectedError

func NewHazelcastTargetDisconnectedError(message string, cause error) *HazelcastTargetDisconnectedError

NewHazelcastTargetDisconnectedError returns a HazelcastTargetDisconnectedError.

type HazelcastTargetNotMemberError

type HazelcastTargetNotMemberError struct {
	*HazelcastErrorType
}

HazelcastTargetNotMemberError indicates operation is send to a machine that isn't member of the cluster.

func NewHazelcastTargetNotMemberError

func NewHazelcastTargetNotMemberError(message string, cause error) *HazelcastTargetNotMemberError

NewHazelcastTargetNotMemberError returns a HazelcastTargetNotMemberError.

type HazelcastTopicOverflowError

type HazelcastTopicOverflowError struct {
	*HazelcastErrorType
}

HazelcastTopicOverflowError is returned when a publisher wants to write to a topic, but there is not sufficient storage to deal with the event. This is returned only when reliable topic is used.

func NewHazelcastTopicOverflowError

func NewHazelcastTopicOverflowError(message string, cause error) *HazelcastTopicOverflowError

NewHazelcastTopicOverflowError return a HazelcastTopicOverflowError.

type HazelcastUnsupportedOperationError

type HazelcastUnsupportedOperationError struct {
	*HazelcastErrorType
}

HazelcastUnsupportedOperationError is returned to indicate that the requested operation is not supported.

func NewHazelcastUnsupportedOperationError

func NewHazelcastUnsupportedOperationError(message string, cause error) *HazelcastUnsupportedOperationError

NewHazelcastUnsupportedOperationError returns a HazelcastUnsupportedOperationError.

type ServerError

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

func NewServerErrorImpl

func NewServerErrorImpl(errorCode int32, className string, message string, stackTrace []StackTraceElement, causeErrorCode int32, causeClassName string) ServerError

NewServerErrorImpl experimental

func (*ServerError) CauseClassName

func (e *ServerError) CauseClassName() string

func (*ServerError) CauseErrorCode

func (e *ServerError) CauseErrorCode() int32

func (*ServerError) ClassName

func (e *ServerError) ClassName() string

func (*ServerError) Error

func (e *ServerError) Error() string

func (*ServerError) ErrorCode

func (e *ServerError) ErrorCode() int32

func (*ServerError) Message

func (e *ServerError) Message() string

func (*ServerError) StackTrace

func (e *ServerError) StackTrace() []StackTraceElement

type StackTraceElement

type StackTraceElement interface {
	// ClassName returns the fully qualified name of the class containing
	// the execution point represented by the stack trace element.
	ClassName() string

	// MethodName returns the name of the method containing the execution point
	// represented by this stack trace element.
	MethodName() string

	// FileName returns the name of the file containing the execution point
	// represented by the stack trace element, or nil if
	// this information is unavailable.
	FileName() string

	// LineNumber returns the line number of the source line containing the
	// execution point represented by this stack trace element, or
	// a negative number if this information is unavailable. A value
	// of -2 indicates that the method containing the execution point
	// is a native method.
	LineNumber() int32
}

StackTraceElement contains stacktrace information for server side exception.

Jump to

Keyboard shortcuts

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