Documentation
¶
Index ¶
- Constants
- func New(message string) error
- func NewAsyncTimeoutError(url string) error
- func NewEmptyDirError(dir string) error
- func NewHTTPError(statusCode int, code string, description string) error
- func NewInvalidTokenError(description string) error
- func NewModelNotFoundError(modelType, name string) error
- func NewNotAuthorizedError() error
- func NewServiceAssociationError() error
- func NewUnbindableServiceError() error
- type AccessDeniedError
- type AsyncTimeoutError
- type EmptyDirError
- type Exception
- type HTTPError
- type HTTPNotFoundError
- type InvalidSSLCert
- type InvalidTokenError
- type ModelAlreadyExistsError
- type ModelNotFoundError
- type NotAuthorizedError
- type ServiceAssociationError
- type UnbindableServiceError
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 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
type AsyncTimeoutError ¶
type AsyncTimeoutError struct {
// contains filtered or unexported fields
}
type EmptyDirError ¶
type EmptyDirError struct {
// contains filtered or unexported fields
}
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) StatusCode ¶
func (err *HTTPNotFoundError) StatusCode() int
type InvalidSSLCert ¶
type InvalidSSLCert struct {
URL string
Reason string
}
func NewInvalidSSLCert ¶
func NewInvalidSSLCert(url, reason string) *InvalidSSLCert
type InvalidTokenError ¶
type InvalidTokenError struct {
// contains filtered or unexported fields
}
type ModelAlreadyExistsError ¶
type ModelAlreadyExistsError struct {
ModelType string
ModelName string
}
func NewModelAlreadyExistsError ¶
func NewModelAlreadyExistsError(modelType, name string) *ModelAlreadyExistsError
type ModelNotFoundError ¶
type ModelNotFoundError struct {
ModelType string
ModelName string
}
type NotAuthorizedError ¶
type NotAuthorizedError struct {
}
type ServiceAssociationError ¶
type ServiceAssociationError struct {
}
type UnbindableServiceError ¶
type UnbindableServiceError struct {
}
Source Files
¶
- access_denied_error.go
- cloud_controller_error_codes.go
- empty_dir_error.go
- error.go
- exception.go
- gateway_error.go
- http_error.go
- invalid_ssl_cert_error.go
- invalid_token_error.go
- model_already_exists_error.go
- model_not_found_error.go
- not_authorized_error.go
- service_association_error.go
- unbindable_service_error.go
Directories
¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.