errors

package
v0.0.0-...-3d855e8 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: BSD-2-Clause Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	UDP_TRANSPORT = 17
	TCP_TRANSPORT = 6
)

Variables

View Source
var PROTO_TO_STR = map[int]string{
	TCP_TRANSPORT: "TCP",
	UDP_TRANSPORT: "UDP",
}
View Source
var STR_TO_PROTO = map[string]int{
	"":    UDP_TRANSPORT,
	"TCP": TCP_TRANSPORT,
	"tcp": TCP_TRANSPORT,
	"UDP": UDP_TRANSPORT,
	"udp": UDP_TRANSPORT,
}

Functions

This section is empty.

Types

type ErrorStack

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

func NewErrorStack

func NewErrorStack(err error) *ErrorStack

func (*ErrorStack) Copy

func (es *ErrorStack) Copy() *ErrorStack

func (*ErrorStack) Error

func (es *ErrorStack) Error() string

func (*ErrorStack) LatestError

func (es *ErrorStack) LatestError() error

func (*ErrorStack) MarshalJSON

func (es *ErrorStack) MarshalJSON() ([]byte, error)

func (*ErrorStack) OriginalError

func (es *ErrorStack) OriginalError() error

func (*ErrorStack) Push

func (es *ErrorStack) Push(err error)

func (*ErrorStack) UnmarshalJSON

func (es *ErrorStack) UnmarshalJSON(bstr []byte) error

type NXDomainError

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

func NewNXDomainError

func NewNXDomainError(qname string, qtype uint16, addr net.IP, proto int) *NXDomainError

func (*NXDomainError) Error

func (nx *NXDomainError) Error() string

func (*NXDomainError) MarshalJSON

func (nx *NXDomainError) MarshalJSON() ([]byte, error)

func (*NXDomainError) UnmarshalJSON

func (nx *NXDomainError) UnmarshalJSON(bstr []byte) error

type NoNameServerError

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

func NewNoNameServerError

func NewNoNameServerError(name string) *NoNameServerError

func (*NoNameServerError) Error

func (ne *NoNameServerError) Error() string

func (*NoNameServerError) MarshalJSON

func (ne *NoNameServerError) MarshalJSON() ([]byte, error)

func (*NoNameServerError) UnmarshalJSON

func (ne *NoNameServerError) UnmarshalJSON(bstr []byte) error

type ServfailError

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

func NewServfailError

func NewServfailError(qname string, qtype uint16, addr net.IP, proto int) *ServfailError

func (*ServfailError) Error

func (se *ServfailError) Error() string

func (*ServfailError) MarshalJSON

func (se *ServfailError) MarshalJSON() ([]byte, error)

func (*ServfailError) UnmarshalJSON

func (se *ServfailError) UnmarshalJSON(bstr []byte) error

type TimeoutError

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

func NewTimeoutError

func NewTimeoutError(operation, topic string) *TimeoutError

func (*TimeoutError) Error

func (te *TimeoutError) Error() string

Jump to

Keyboard shortcuts

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