org.cloudfoundry.client.lib
Class CloudFoundryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.client.RestClientException
org.springframework.web.client.HttpStatusCodeException
org.springframework.web.client.HttpClientErrorException
org.cloudfoundry.client.lib.CloudFoundryException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NotFinishedStagingException, StagingErrorException
public class CloudFoundryException
- extends org.springframework.web.client.HttpClientErrorException
- See Also:
- Serialized Form
Methods inherited from class org.springframework.web.client.HttpStatusCodeException |
getResponseBodyAsByteArray, getResponseBodyAsString, getResponseHeaders, getStatusCode, getStatusText |
Methods inherited from class org.springframework.core.NestedRuntimeException |
contains, getMessage, getMostSpecificCause, getRootCause |
CloudFoundryException
public CloudFoundryException(org.springframework.http.HttpStatus statusCode)
CloudFoundryException
public CloudFoundryException(org.springframework.http.HttpStatus statusCode,
String statusText)
CloudFoundryException
public CloudFoundryException(org.springframework.http.HttpStatus statusCode,
String statusText,
int cloudFoundryErrorCode)
CloudFoundryException
public CloudFoundryException(org.springframework.http.HttpStatus statusCode,
String statusText,
String description)
- Construct a new instance of
CloudFoundryException
based on a HttpStatus
, status text and description.
- Parameters:
statusCode
- the status codestatusText
- the status textdescription
- the description
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getCloudFoundryErrorCode
public int getCloudFoundryErrorCode()
- Returns an additional error code that is specific to failures in Cloud Foundry requests or behaviour.
- Returns:
- Cloud Foundry error code, if available, or -1 if unknown.
toString
public String toString()
- Overrides:
toString
in class Throwable
Copyright © 2013. All rights reserved.