errors

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasCode added in v0.6.1

func HasCode(err error, code int) bool

Types

type AuthenticationError added in v0.6.1

type AuthenticationError struct {
	ErrorCode
	AuthDetail interface{}
}

func NewAuthenticationError added in v0.6.1

func NewAuthenticationError(detail interface{}) AuthenticationError

func (AuthenticationError) Error added in v0.6.1

func (err AuthenticationError) Error() string

type ConfigurationError added in v0.6.1

type ConfigurationError struct {
	ErrorCode
}

func NewConfigurationError added in v0.6.1

func NewConfigurationError() ConfigurationError

func (ConfigurationError) Error added in v0.6.1

func (r ConfigurationError) Error() string

type CorruptedPacketError added in v0.6.1

type CorruptedPacketError struct {
	ErrorCode
}

func NewCorruptedPacketError added in v0.6.1

func NewCorruptedPacketError() CorruptedPacketError

func (CorruptedPacketError) Error added in v0.6.1

func (err CorruptedPacketError) Error() string

type ErrorCode added in v0.6.1

type ErrorCode int

func (ErrorCode) Code added in v0.6.1

func (code ErrorCode) Code() int

func (ErrorCode) Prefix added in v0.6.1

func (code ErrorCode) Prefix() string

type ErrorWithCode added in v0.6.1

type ErrorWithCode interface {
	error
	Code() int
}

type IPFormatError added in v0.6.1

type IPFormatError struct {
	ErrorCode
	IP []byte
}

func NewIPFormatError added in v0.6.1

func NewIPFormatError(ip []byte) IPFormatError

func (IPFormatError) Error added in v0.6.1

func (err IPFormatError) Error() string

type InvalidOperationError added in v0.6.1

type InvalidOperationError struct {
	ErrorCode
	Operation string
}

func NewInvalidOperationError added in v0.6.1

func NewInvalidOperationError(operation string) InvalidOperationError

func (InvalidOperationError) Error added in v0.6.1

func (r InvalidOperationError) Error() string

type ProtocolVersionError added in v0.6.1

type ProtocolVersionError struct {
	ErrorCode
	Version int
}

func NewProtocolVersionError added in v0.6.1

func NewProtocolVersionError(version int) ProtocolVersionError

func (ProtocolVersionError) Error added in v0.6.1

func (err ProtocolVersionError) Error() string

Jump to

Keyboard shortcuts

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