errors

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAuthenticationFailed indicates a failure to authenticate to the server with the user and password provided.
	ErrAuthenticationFailed = errors.New("could not authenticate to the XMPP server")

	// ErrGoogleAuthenticationFailed indicates a failure to authenticate to the server with the user and password provided.
	ErrGoogleAuthenticationFailed = errors.New("could not authenticate to the Google XMPP server")

	//ErrConnectionFailed indicates a failure to connect to the server provided.
	ErrConnectionFailed = errors.New("could not connect to XMPP server")

	//ErrTCPBindingFailed indicates a failure to determine a server address for the given origin domain
	ErrTCPBindingFailed = errors.New("failed to find a TCP address for XMPP server")
)

Functions

This section is empty.

Types

type ErrFailedToConnect

type ErrFailedToConnect struct {
	Addr string
	Err  error
}

ErrFailedToConnect is an error representing connection failure

func CreateErrFailedToConnect

func CreateErrFailedToConnect(addr string, err error) *ErrFailedToConnect

CreateErrFailedToConnect will create a ErrFailedToConnect from the given data

func (*ErrFailedToConnect) Error

func (e *ErrFailedToConnect) Error() string

Jump to

Keyboard shortcuts

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