{"modulePath":"github.com/DaAlbrecht/cf-cli","version":"v0.0.0-20231128151943-1fe19bb400b9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\tMessageParseError                      = \"1001\"\n\tInvalidRelation                        = \"1002\"\n\tNotAuthorized                          = \"10003\"\n\tBadQueryParameter                      = \"10005\"\n\tUserNotFound                           = \"20003\"\n\tOrganizationNameTaken                  = \"30002\"\n\tSpaceNameTaken                         = \"40002\"\n\tServiceInstanceNameTaken               = \"60002\"\n\tServiceBindingAppServiceTaken          = \"90003\"\n\tUnbindableService                      = \"90005\"\n\tServiceInstanceAlreadyBoundToSameRoute = \"130008\"\n\tNotStaged                              = \"170002\"\n\tInstancesError                         = \"220001\"\n\tQuotaDefinitionNameTaken               = \"240002\"\n\tBuildpackNameStackTaken                = \"290000\"\n\tBuildpackNameTaken                     = \"290001\"\n\tStackUnique                            = \"290003\"\n\tSecurityGroupNameTaken                 = \"300005\"\n\tServiceKeyNameTaken                    = \"360001\"\n)\n```\n\n## Functions\n\n```go\nfunc New(message string) error\n```\n\n```go\nfunc NewAmbiguousModelError(modelType, name string) error\n```\n\n```go\nfunc NewAsyncTimeoutError(url string) error\n```\n\n```go\nfunc NewCurlHTTPError(statusCode int) 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 NewNotAuthorizedError() error\n```\n\n```go\nfunc NewServiceAssociationError() error\n```\n\n```go\nfunc NewUnbindableServiceError() error\n```\n\n## Types\n\n```go\ntype AccessDeniedError struct {\n}\n```\n\n```go\nfunc NewAccessDeniedError() *AccessDeniedError\n```\n\n```go\nfunc (err *AccessDeniedError) Error() string\n```\n\n```go\ntype AmbiguousModelError struct {\n\tModelType string\n\tModelName string\n}\n```\n\n```go\nfunc (err *AmbiguousModelError) Error() string\n```\n\n```go\ntype AsyncTimeoutError struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (err *AsyncTimeoutError) Error() string\n```\n\n```go\ntype CurlHTTPError struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (err CurlHTTPError) Error() string\n```\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 Exception struct {\n\tMessage            string\n\tDisplayCrashDialog bool\n}\n```\n\n```go\ntype HTTPError interface {\n\tError() string\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```go\ntype NotAuthorizedError struct {\n}\n```\n\n```go\nfunc (err *NotAuthorizedError) Error() string\n```\n\n```go\ntype ServiceAssociationError struct {\n}\n```\n\n```go\nfunc (err *ServiceAssociationError) Error() string\n```\n\n```go\ntype UnbindableServiceError struct {\n}\n```\n\n```go\nfunc (err *UnbindableServiceError) Error() string\n```\n\n","path":"github.com/DaAlbrecht/cf-cli/cf/errors","name":"errors","synopsis":"","isRedistributable":true}
