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 NewUnbindableServiceError() error
- func NewWithError(message string, err error) error
- func NewWithFmt(message string, args ...interface{}) error
- func NewWithSlice(errs []error) error
- type AccessDeniedError
- type AsyncTimeoutError
- type EmptyDirError
- type Exception
- type HttpError
- type HttpNotFoundError
- type InvalidSSLCert
- type InvalidTokenError
- type ModelAlreadyExistsError
- type ModelNotFoundError
- type UnbindableServiceError
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"
SERVICE_KEY_NAME_TAKEN = "360001"
APP_NOT_STAGED = "170002"
APP_STOPPED = "220001"
BUILDPACK_EXISTS = "290001"
SECURITY_GROUP_EXISTS = "300005"
APP_ALREADY_BOUND = "90003"
UNBINDABLE_SERVICE = "90005"
)
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 NewUnbindableServiceError ¶
func NewUnbindableServiceError() 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 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
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 UnbindableServiceError ¶
type UnbindableServiceError struct {
}
Click to show internal directories.
Click to hide internal directories.