{"modulePath":"code.cloudfoundry.org/cli","version":"v6.1.1+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tINVALID_RELATION            = \"1002\"\n\tBAD_QUERY_PARAM             = \"10005\"\n\tUSER_EXISTS                 = \"20002\"\n\tUSER_NOT_FOUND              = \"20003\"\n\tORG_EXISTS                  = \"30002\"\n\tSPACE_EXISTS                = \"40002\"\n\tQUOTA_EXISTS                = \"240002\"\n\tSERVICE_INSTANCE_NAME_TAKEN = \"60002\"\n\tAPP_NOT_STAGED              = \"170002\"\n\tAPP_STOPPED                 = \"220001\"\n\tBUILDPACK_EXISTS            = \"290001\"\n\tAPP_ALREADY_BOUND           = \"90003\"\n)\n```\n\n## Functions\n\n```go\nfunc New(message string) error\n```\n\n```go\nfunc NewEmptyDirError(dir string) error\n```\n\n```go\nfunc NewHttpError(statusCode int, code string, description string) error\n```\n\n```go\nfunc NewInvalidTokenError(description string) error\n```\n\n```go\nfunc NewModelNotFoundError(modelType, name string) error\n```\n\n```go\nfunc NewWithError(message string, err error) error\n```\n\n```go\nfunc NewWithFmt(message string, args ...interface{}) error\n```\n\n```go\nfunc NewWithSlice(errs []error) error\n```\n\n## Types\n\n```go\ntype EmptyDirError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (err *EmptyDirError) Error() string\n```\n\n```go\ntype HttpError interface {\n\terror\n\tStatusCode() int   // actual HTTP status code\n\tErrorCode() string // error code returned in response body from CC or UAA\n}\n```\n\n```go\ntype HttpNotFoundError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (err *HttpNotFoundError) Error() string\n```\n\n```go\nfunc (err *HttpNotFoundError) ErrorCode() string\n```\n\n```go\nfunc (err *HttpNotFoundError) StatusCode() int\n```\n\n```go\ntype InvalidSSLCert struct {\n\tURL    string\n\tReason string\n}\n```\n\n```go\nfunc NewInvalidSSLCert(url, reason string) *InvalidSSLCert\n```\n\n```go\nfunc (err *InvalidSSLCert) Error() string\n```\n\n```go\ntype InvalidTokenError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (err *InvalidTokenError) Error() string\n```\n\n```go\ntype ModelAlreadyExistsError struct {\n\tModelType string\n\tModelName string\n}\n```\n\n```go\nfunc NewModelAlreadyExistsError(modelType, name string) *ModelAlreadyExistsError\n```\n\n```go\nfunc (err *ModelAlreadyExistsError) Error() string\n```\n\n```go\ntype ModelNotFoundError struct {\n\tModelType string\n\tModelName string\n}\n```\n\n```go\nfunc (err *ModelNotFoundError) Error() string\n```\n\n","path":"code.cloudfoundry.org/cli/src/cf/errors","name":"errors","synopsis":"","isRedistributable":true}
