errors

package
v6.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: Apache-2.0 Imports: 3 Imported by: 1,045

Documentation

Index

Constants

View Source
const (
	PARSE_ERROR                 = "1001"
	INVALID_RELATION            = "1002"
	BAD_QUERY_PARAM             = "10005"
	USER_EXISTS                 = "20002"
	USER_NOT_FOUND              = "20003"
	ORG_EXISTS                  = "30002"
	SPACE_EXISTS                = "40002"
	QUOTA_EXISTS                = "240002"
	SERVICE_INSTANCE_NAME_TAKEN = "60002"
	APP_NOT_STAGED              = "170002"
	APP_STOPPED                 = "220001"
	BUILDPACK_EXISTS            = "290001"
	SECURITY_GROUP_EXISTS       = "300005"
	APP_ALREADY_BOUND           = "90003"
)

Variables

This section is empty.

Functions

func New

func New(message string) error

func NewAsyncTimeoutError

func NewAsyncTimeoutError(url string) error

func NewEmptyDirError

func NewEmptyDirError(dir string) error

func NewHttpError

func NewHttpError(statusCode int, code string, description string) error

func NewInvalidTokenError

func NewInvalidTokenError(description string) error

func NewModelNotFoundError

func NewModelNotFoundError(modelType, name string) error

func NewWithError

func NewWithError(message string, err error) error

func NewWithFmt

func NewWithFmt(message string, args ...interface{}) error

func NewWithSlice

func NewWithSlice(errs []error) error

Types

type AsyncTimeoutError

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

func (*AsyncTimeoutError) Error

func (err *AsyncTimeoutError) Error() string

type EmptyDirError

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

func (*EmptyDirError) Error

func (err *EmptyDirError) Error() string

type Exception

type Exception struct {
	Message            string
	DisplayCrashDialog bool
}

type HttpError

type HttpError interface {
	error
	StatusCode() int   // actual HTTP status code
	ErrorCode() string // error code returned in response body from CC or UAA
}

type HttpNotFoundError

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

func (*HttpNotFoundError) Error

func (err *HttpNotFoundError) Error() string

func (*HttpNotFoundError) ErrorCode

func (err *HttpNotFoundError) ErrorCode() 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

type InvalidTokenError

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

func (*InvalidTokenError) Error

func (err *InvalidTokenError) Error() string

type ModelAlreadyExistsError

type ModelAlreadyExistsError struct {
	ModelType string
	ModelName string
}

func NewModelAlreadyExistsError

func NewModelAlreadyExistsError(modelType, name string) *ModelAlreadyExistsError

func (*ModelAlreadyExistsError) Error

func (err *ModelAlreadyExistsError) Error() string

type ModelNotFoundError

type ModelNotFoundError struct {
	ModelType string
	ModelName string
}

func (*ModelNotFoundError) Error

func (err *ModelNotFoundError) Error() string

Jump to

Keyboard shortcuts

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