errors

package
v6.0.1234+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2014 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(message string) error

Types

type Error

type Error interface {
	error
	ErrorCode() string
}

func NewError

func NewError(message string, errorCode string) Error

func NewErrorWithError

func NewErrorWithError(message string, err error) Error

func NewErrorWithMessage

func NewErrorWithMessage(message string, a ...interface{}) Error

type HttpError

type HttpError interface {
	Error
	StatusCode() int
	Headers() string
	Body() string
}

func NewHttpError

func NewHttpError(statusCode int, header string, body string, code string, description string) HttpError

type HttpNotFoundError

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

func (HttpNotFoundError) Body

func (err HttpNotFoundError) Body() string

func (HttpNotFoundError) Error

func (err HttpNotFoundError) Error() string

func (HttpNotFoundError) ErrorCode

func (err HttpNotFoundError) ErrorCode() string

func (HttpNotFoundError) Headers

func (err HttpNotFoundError) Headers() string

func (HttpNotFoundError) StatusCode

func (err HttpNotFoundError) StatusCode() int

type InvalidSSLCert

type InvalidSSLCert struct {
	URL    string
	Reason string
}

func NewInvalidSSLCert

func NewInvalidSSLCert(url, reason string) *InvalidSSLCert

func (*InvalidSSLCert) Error

func (err *InvalidSSLCert) Error() string

func (*InvalidSSLCert) ErrorCode

func (err *InvalidSSLCert) ErrorCode() string

type ModelNotFoundError

type ModelNotFoundError struct {
	ModelType string
	ModelName string
}

func NewModelNotFoundError

func NewModelNotFoundError(modelType, name string) ModelNotFoundError

func (ModelNotFoundError) Error

func (err ModelNotFoundError) Error() string

func (ModelNotFoundError) ErrorCode

func (err ModelNotFoundError) ErrorCode() string

Jump to

Keyboard shortcuts

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