Documentation ¶
Index ¶
- Constants
- func New(message 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 NewWithError(message string, err error) error
- func NewWithFmt(message string, args ...interface{}) error
- func NewWithSlice(errs []error) error
- type EmptyDirError
- type HttpError
- type HttpNotFoundError
- type InvalidSSLCert
- type InvalidTokenError
- type ModelAlreadyExistsError
- type ModelNotFoundError
Constants ¶
View Source
const ( INVALID_RELATION = "1002" BAD_QUERY_PARAM = "10005" USER_EXISTS = "20002" USER_NOT_FOUND = "20003" ORG_EXISTS = "30002" SPACE_EXISTS = "40002" SERVICE_INSTANCE_NAME_TAKEN = "60002" APP_NOT_STAGED = "170002" APP_STOPPED = "220001" BUILDPACK_EXISTS = "290001" APP_ALREADY_BOUND = "90003" )
Variables ¶
This section is empty.
Functions ¶
func NewEmptyDirError ¶
func NewInvalidTokenError ¶
func NewModelNotFoundError ¶
func NewWithError ¶
func NewWithFmt ¶
func NewWithSlice ¶
Types ¶
type EmptyDirError ¶
type EmptyDirError struct {
// contains filtered or unexported fields
}
func (*EmptyDirError) Error ¶
func (err *EmptyDirError) Error() string
type HttpNotFoundError ¶
type HttpNotFoundError struct {
// contains filtered or unexported fields
}
func (*HttpNotFoundError) StatusCode ¶
func (err *HttpNotFoundError) StatusCode() int
type InvalidSSLCert ¶
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 ¶
func NewModelAlreadyExistsError ¶
func NewModelAlreadyExistsError(modelType, name string) *ModelAlreadyExistsError
func (*ModelAlreadyExistsError) Error ¶
func (err *ModelAlreadyExistsError) Error() string
type ModelNotFoundError ¶
func (*ModelNotFoundError) Error ¶
func (err *ModelNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.