errors

package
v6.46.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 1,045

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"
	BuildpackNameStackTaken                = "290000"
	BuildpackNameTaken                     = "290001"
	StackUnique                            = "290003"
	SecurityGroupNameTaken                 = "300005"
	ServiceKeyNameTaken                    = "360001"
)

Variables

This section is empty.

Functions

func New

func New(message string) error

func NewAmbiguousModelError

func NewAmbiguousModelError(modelType, name string) error

func NewAsyncTimeoutError

func NewAsyncTimeoutError(url string) error

func NewCurlHTTPError

func NewCurlHTTPError(statusCode int) 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 AmbiguousModelError

type AmbiguousModelError struct {
	ModelType string
	ModelName string
}

func (*AmbiguousModelError) Error

func (err *AmbiguousModelError) Error() string

type AsyncTimeoutError

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

func (*AsyncTimeoutError) Error

func (err *AsyncTimeoutError) Error() string

type CurlHTTPError

type CurlHTTPError struct {
	StatusCode int
}

func (CurlHTTPError) Error

func (err CurlHTTPError) 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
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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