errors

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ERR_DIAL = int32(2)
View Source
const ERR_LOST_CONNECTION = int32(1)

Variables

This section is empty.

Functions

func NewUnauthorizedError

func NewUnauthorizedError(description string) error

Types

type NonRetryError

type NonRetryError struct {
	Err error
}

NonRetryError is a type that noaa uses when it encountered an error, and is not going to retry the operation. When errors of this type are encountered, they should result in a closed connection.

func NewNonRetryError

func NewNonRetryError(err error) NonRetryError

NewNonRetryError constructs a NonRetryError from any error.

func (NonRetryError) Error

func (e NonRetryError) Error() string

Error implements error.

type RetryError

type RetryError struct {
	Err error
}

RetryError is a type that noaa uses when it encountered an error, but is going to retry the operation. When errors of this type are encountered, they should not result in a closed connection.

func NewRetryError

func NewRetryError(err error) RetryError

NewRetryError constructs a RetryError from any error.

func (RetryError) Error

func (e RetryError) Error() string

Error implements error.

type UnauthorizedError

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

func (*UnauthorizedError) Error

func (err *UnauthorizedError) Error() string

Jump to

Keyboard shortcuts

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