{"modulePath":"github.com/sleungcy-sap/cli","version":"v7.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ccerror\n\n## Types\n\n```go\ntype APINotFoundError struct {\n\tURL string\n}\n```\nAPINotFoundError is returned when the API endpoint is not found.\n\n```go\nfunc (e APINotFoundError) Error() string\n```\n\n```go\ntype ApplicationNotFoundError struct {\n\tName string\n}\n```\nApplicationNotFoundError is returned when an endpoint cannot find the specified application\n\n```go\nfunc (e ApplicationNotFoundError) Error() string\n```\n\n```go\ntype ApplicationStoppedStatsError struct {\n\tMessage string\n}\n```\nApplicationStoppedStatsError is returned when requesting instance information from a stopped app.\n\n```go\nfunc (e ApplicationStoppedStatsError) Error() string\n```\n\n```go\ntype BadRequestError struct {\n\tMessage string\n}\n```\nBadRequestError is returned when the server says the request was bad.\n\n```go\nfunc (e BadRequestError) Error() string\n```\n\n```go\ntype BuildpackAlreadyExistsForStackError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackAlreadyExistsForStackError) Error() string\n```\n\n```go\ntype BuildpackInvalidError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackInvalidError) Error() string\n```\n\n```go\ntype BuildpackNameTakenError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackNameTakenError) Error() string\n```\n\n```go\ntype BuildpackStackDoesNotExistError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackStackDoesNotExistError) Error() string\n```\n\n```go\ntype BuildpackStacksDontMatchError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackStacksDontMatchError) Error() string\n```\n\n```go\ntype BuildpackZipInvalidError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e BuildpackZipInvalidError) Error() string\n```\n\n```go\ntype DeploymentNotFoundError struct {\n}\n```\nDeploymentNotFoundError is returned when an endpoint cannot find the specified deployment\n\n```go\nfunc (e DeploymentNotFoundError) Error() string\n```\n\n```go\ntype DropletNotFoundError struct {\n}\n```\nDropletNotFoundError is returned when an endpoint cannot find the specified application\n\n```go\nfunc (e DropletNotFoundError) Error() string\n```\n\n```go\ntype FeatureFlagNotFoundError struct {\n}\n```\nFeatureFlagNotFoundError is returned when the API endpoint is not found.\n\n```go\nfunc (e FeatureFlagNotFoundError) Error() string\n```\n\n```go\ntype ForbiddenError struct {\n\tMessage string\n}\n```\nForbiddenError is returned when the client is forbidden from executing the request.\n\n```go\nfunc (e ForbiddenError) Error() string\n```\n\n```go\ntype InstanceNotFoundError struct {\n}\n```\nInstanceNotFoundError is returned when an endpoint cannot find the specified instance\n\n```go\nfunc (e InstanceNotFoundError) Error() string\n```\n\n```go\ntype InstancesError struct {\n\tMessage string\n}\n```\nInstancesError is returned when requesting instance information encounters an error.\n\n```go\nfunc (e InstancesError) Error() string\n```\n\n```go\ntype InvalidAuthTokenError struct {\n\tMessage string\n}\n```\nInvalidAuthTokenError is returned when the client has an invalid authorization header.\n\n```go\nfunc (e InvalidAuthTokenError) Error() string\n```\n\n```go\ntype InvalidBuildpackError struct {\n}\n```\n\n```go\nfunc (e InvalidBuildpackError) Error() string\n```\n\n```go\ntype InvalidRelationError struct {\n\tMessage string\n}\n```\nInvalidRelationError is returned when an association between two entities cannot be created.\n\n```go\nfunc (e InvalidRelationError) Error() string\n```\n\n```go\ntype InvalidStartError struct {\n}\n```\n\n```go\nfunc (e InvalidStartError) Error() string\n```\n\n```go\ntype InvalidStateError struct {\n}\n```\n\n```go\nfunc (e InvalidStateError) Error() string\n```\n\n```go\ntype JobTimeoutError struct {\n\tJobGUID string\n\tTimeout time.Duration\n}\n```\nJobTimeoutError is returned from PollJob when the OverallPollingTimeout has been reached.\n\n```go\nfunc (e JobTimeoutError) Error() string\n```\n\n```go\ntype MinimumAPIVersionNotMetError struct {\n\tCurrentVersion string\n\tMinimumVersion string\n}\n```\n\n```go\nfunc (e MinimumAPIVersionNotMetError) Error() string\n```\n\n```go\ntype MultiError struct {\n\tErrors       []V3Error\n\tResponseCode int\n}\n```\n\n```go\nfunc (e MultiError) Details() []string\n```\n\n```go\nfunc (e MultiError) Error() string\n```\n\n```go\ntype NameNotUniqueInOrgError struct {\n}\n```\n\n```go\nfunc (e NameNotUniqueInOrgError) Error() string\n```\n\n```go\ntype NameNotUniqueInSpaceError struct {\n\tUnprocessableEntityError\n}\n```\n\n```go\ntype NilObjectError struct {\n\tObject string\n}\n```\nNilObjectError gets returned when passed a nil object as a parameter.\n\n```go\nfunc (e NilObjectError) Error() string\n```\n\n```go\ntype NotStagedError struct {\n\tMessage string\n}\n```\nNotStagedError is returned when requesting instance information from a not staged app.\n\n```go\nfunc (e NotStagedError) Error() string\n```\n\n```go\ntype OrganizationNameTakenError struct {\n\tUnprocessableEntityError\n}\n```\nOrganizationNameTakenError is returned when an organization with the requested name already exists in the Cloud Controller.\n\n```go\ntype PipeSeekError struct {\n\t// Err is the error that caused the Seek to be called.\n\tErr error\n}\n```\nPipeSeekError is returned by Pipebomb when a Seek is called.\n\n```go\nfunc (e PipeSeekError) Error() string\n```\n\n```go\ntype ProcessNotFoundError struct {\n}\n```\nProcessNotFoundError is returned when an endpoint cannot find the specified process\n\n```go\nfunc (e ProcessNotFoundError) Error() string\n```\n\n```go\ntype QuotaAlreadyExists struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e QuotaAlreadyExists) Error() string\n```\n\n```go\ntype RawHTTPStatusError struct {\n\tStatusCode  int\n\tRawResponse []byte\n\tRequestIDs  []string\n}\n```\nRawHTTPStatusError represents any response with a 4xx or 5xx status code.\n\n```go\nfunc (r RawHTTPStatusError) Error() string\n```\n\n```go\ntype RequestError struct {\n\tErr error\n}\n```\nRequestError represents a generic error encountered while performing the HTTP request. This generic error occurs before a HTTP response is obtained.\n\n```go\nfunc (e RequestError) Error() string\n```\n\n```go\ntype ResourceNotFoundError struct {\n\tMessage string\n}\n```\nResourceNotFoundError is returned when the client requests a resource that does not exist or does not have permissions to see.\n\n```go\nfunc (e ResourceNotFoundError) Error() string\n```\n\n```go\ntype RoleAlreadyExistsError struct {\n\tUnprocessableEntityError\n}\n```\nRoleAlreadyExistsError is returned when a role with the same type, user, and org or space already exists in the Cloud Controller.\n\n```go\ntype RouteNotUniqueError struct {\n\tUnprocessableEntityError\n}\n```\n\n```go\ntype SSLValidationHostnameError struct {\n\tMessage string\n}\n```\nSSLValidationHostnameError replaces x509.HostnameError when the server has SSL certificate that does not match the hostname.\n\n```go\nfunc (e SSLValidationHostnameError) Error() string\n```\n\n```go\ntype SecurityGroupAlreadyExists struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e SecurityGroupAlreadyExists) Error() string\n```\n\n```go\ntype SecurityGroupNotBound struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e SecurityGroupNotBound) Error() string\n```\n\n```go\ntype ServiceBindingTakenError struct {\n\tMessage string\n}\n```\nServiceBindingTakenError is returned when creating a service binding that already exists\n\n```go\nfunc (e ServiceBindingTakenError) Error() string\n```\n\n```go\ntype ServiceBrokerBadResponseError struct {\n\tMessage string\n}\n```\nServiceBrokerBadResponseError is returned when CC returns an error of type CF-ServiceBrokerBadResponse.\n\n```go\nfunc (e ServiceBrokerBadResponseError) Error() string\n```\n\n```go\ntype ServiceBrokerCatalogInvalidError struct {\n\tMessage string\n}\n```\n\n```go\nfunc (e ServiceBrokerCatalogInvalidError) Error() string\n```\n\n```go\ntype ServiceBrokerRequestRejectedError struct {\n\tMessage string\n}\n```\nServiceBrokerRequestRejectedError is returned when CC returns an error of type CF-ServiceBrokerRequestRejected.\n\n```go\nfunc (e ServiceBrokerRequestRejectedError) Error() string\n```\n\n```go\ntype ServiceInstanceNameTakenError struct {\n\tMessage string\n}\n```\nServiceInstanceNameTakenError is returned when creating a service instance that already exists.\n\n```go\nfunc (e ServiceInstanceNameTakenError) Error() string\n```\n\n```go\ntype ServiceKeyTakenError struct {\n\tMessage string\n}\n```\nServiceKeyTakenError is returned when creating a service key that already exists\n\n```go\nfunc (e ServiceKeyTakenError) Error() string\n```\n\n```go\ntype ServiceOfferingNameAmbiguityError struct {\n\tServiceOfferingName string\n\tServiceBrokerNames  []string\n}\n```\n\n```go\nfunc (e ServiceOfferingNameAmbiguityError) Error() string\n```\n\n```go\ntype ServiceOfferingNotFoundError struct {\n\tServiceOfferingName, ServiceBrokerName string\n}\n```\n\n```go\nfunc (e ServiceOfferingNotFoundError) Error() string\n```\n\n```go\ntype ServicePlanVisibilityExistsError struct {\n\tMessage string\n}\n```\nServicePlanVisibilityExistsError is returned when creating a service plan visibility that already exists\n\n```go\nfunc (e ServicePlanVisibilityExistsError) Error() string\n```\n\n```go\ntype ServiceUnavailableError struct {\n\tMessage string\n}\n```\nServiceUnavailableError wraps a http 503 error.\n\n```go\nfunc (e ServiceUnavailableError) Error() string\n```\n\n```go\ntype SpaceNameTakenError struct {\n\tMessage string\n}\n```\nSpaceNameTakenError is returned when creating a space that already exists.\n\n```go\nfunc (e SpaceNameTakenError) Error() string\n```\n\n```go\ntype TaskWorkersUnavailableError struct {\n\tMessage string\n}\n```\nTaskWorkersUnavailableError represents the case when no Diego workers are available.\n\n```go\nfunc (e TaskWorkersUnavailableError) Error() string\n```\n\n```go\ntype UnauthorizedError struct {\n\tMessage string\n}\n```\nUnauthorizedError is returned when the client does not have the correct permissions to execute the request.\n\n```go\nfunc (e UnauthorizedError) Error() string\n```\n\n```go\ntype UnknownHTTPSourceError struct {\n\tStatusCode  int\n\tRawResponse []byte\n}\n```\nUnknownHTTPSourceError represents HTTP responses with status code \u003e= 400 that we cannot unmarshal into a {V2,V3}ErrorResponse. Ex: In \"cf api google.com\", google will return a 404, but the body will not match an error from the Cloud Controller\n\n```go\nfunc (r UnknownHTTPSourceError) Error() string\n```\n\n```go\ntype UnknownObjectInListError struct {\n\tExpected   interface{}\n\tUnexpected interface{}\n}\n```\nUnknownObjectInListError is returned when iterating through a paginated list. Assuming tests are written for the paginated function, this should be impossible to get.\n\n```go\nfunc (e UnknownObjectInListError) Error() string\n```\n\n```go\ntype UnprocessableEntityError struct {\n\tMessage string\n}\n```\nUnprocessableEntityError is returned when the request cannot be processed by the cloud controller.\n\n```go\nfunc (e UnprocessableEntityError) Error() string\n```\n\n```go\ntype UnverifiedServerError struct {\n\tURL string\n}\n```\nUnverifiedServerError replaces x509.UnknownAuthorityError when the server has SSL but the client is unable to verify it's certificate\n\n```go\nfunc (UnverifiedServerError) Error() string\n```\n\n```go\ntype UserNotFoundError struct {\n\tUsername string\n\tOrigin   string\n}\n```\nUserNotFoundError is returned when a role does not exist.\n\n```go\nfunc (e UserNotFoundError) Error() string\n```\n\n```go\ntype V2ErrorResponse struct {\n\tCode        int    `json:\"code\"`\n\tDescription string `json:\"description\"`\n\tErrorCode   string `json:\"error_code\"`\n}\n```\nV2ErrorResponse represents a generic Cloud Controller V2 error response.\n\n```go\ntype V2JobFailedError struct {\n\tJobGUID string\n\tMessage string\n}\n```\nV2JobFailedError represents a failed Cloud Controller Job. It wraps the error returned back from the Cloud Controller.\n\n```go\nfunc (e V2JobFailedError) Error() string\n```\n\n```go\ntype V2UnexpectedResponseError struct {\n\tV2ErrorResponse\n\n\tRequestIDs   []string\n\tResponseCode int\n}\n```\nV2UnexpectedResponseError is returned when the client gets an error that has not been accounted for.\n\n```go\nfunc (e V2UnexpectedResponseError) Error() string\n```\n\n```go\ntype V3Error struct {\n\tCode   int64  `json:\"code\"`\n\tDetail string `json:\"detail\"`\n\tTitle  string `json:\"title\"`\n}\n```\nV3Error represents a cloud controller error.\n\n```go\ntype V3ErrorResponse struct {\n\tErrors []V3Error `json:\"errors\"`\n}\n```\nV3ErrorResponse represents a generic Cloud Controller V3 error response.\n\n```go\ntype V3JobFailedError struct {\n\tJobGUID string\n\n\t// Code is a numeric code for this error.\n\tCode constant.JobErrorCode `json:\"code\"`\n\t// Detail is a verbose description of the error.\n\tDetail string `json:\"detail\"`\n\t// Title is a short description of the error.\n\tTitle string `json:\"title\"`\n}\n```\nV3JobFailedError represents a failed Cloud Controller Job. It wraps the error returned back from the Cloud Controller.\n\n```go\nfunc (e V3JobFailedError) Error() string\n```\n\n```go\ntype V3UnexpectedResponseError struct {\n\tV3ErrorResponse\n\n\tResponseCode int\n\tRequestIDs   []string\n}\n```\nV3UnexpectedResponseError is returned when the client gets an error that has not been accounted for.\n\n```go\nfunc (e V3UnexpectedResponseError) Error() string\n```\n\n","path":"github.com/sleungcy-sap/cli/api/cloudcontroller/ccerror","name":"ccerror","synopsis":"","isRedistributable":true}
