errors

package
v6.32.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageParseError                      = "1001"
	InvalidRelation                        = "1002"
	NotAuthorized                          = "10003"
	BadQueryParameter                      = "10005"
	UserNotFound                           = "20003"
	OrganizationNameTaken                  = "30002"
	SpaceNameTaken                         = "40002"
	ServiceInstanceNameTaken               = "60002"
	ServiceBindingAppServiceTaken          = "90003"
	UnbindableService                      = "90005"
	ServiceInstanceAlreadyBoundToSameRoute = "130008"
	NotStaged                              = "170002"
	InstancesError                         = "220001"
	QuotaDefinitionNameTaken               = "240002"
	BuildpackNameTaken                     = "290001"
	SecurityGroupNameTaken                 = "300005"
	ServiceKeyNameTaken                    = "360001"
)

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 NewNotAuthorizedError

func NewNotAuthorizedError() error

func NewServiceAssociationError

func NewServiceAssociationError() error

func NewUnbindableServiceError

func NewUnbindableServiceError() error

Types

type AccessDeniedError

type AccessDeniedError struct {
}

func NewAccessDeniedError

func NewAccessDeniedError() *AccessDeniedError

func (*AccessDeniedError) Error

func (err *AccessDeniedError) Error() string

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() string
	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

type NotAuthorizedError

type NotAuthorizedError struct {
}

func (*NotAuthorizedError) Error

func (err *NotAuthorizedError) Error() string

type ServiceAssociationError

type ServiceAssociationError struct {
}

func (*ServiceAssociationError) Error

func (err *ServiceAssociationError) Error() string

type UnbindableServiceError

type UnbindableServiceError struct {
}

func (*UnbindableServiceError) Error

func (err *UnbindableServiceError) Error() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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