com.openshift.client
Class OpenShiftEndpointException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.openshift.client.OpenShiftException
com.openshift.client.OpenShiftEndpointException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InvalidCredentialsOpenShiftException, NotFoundOpenShiftException, OpenShiftTimeoutException
public class OpenShiftEndpointException
- extends OpenShiftException
- Author:
- André Dietisheim
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OpenShiftEndpointException
public OpenShiftEndpointException(String url,
Throwable cause,
RestResponse response,
String message,
Object... arguments)
getRestResponse
public RestResponse getRestResponse()
throws OpenShiftException
- Returns:
- the server response after converting it into a
RestResponse
.
- Throws:
OpenShiftException
- if the unmarshalling fails
getRestResponseMessages
public Messages getRestResponseMessages()
- Returns:
- the server response messages after converting the response into a
RestResponse
. If the unmarshalling fails, the returned list is null
.
getRestResponseMessage
public List<Message> getRestResponseMessage(IField field)
- Returns the message for the given field. Returns
null
otherwise.
- Parameters:
field
-
- Returns:
- the message for the given field
- See Also:
Message#FIELD_DEFAULT
,
Message#FIELD_APPINFO
,
Message#FIELD_RESULT
getUrl
protected String getUrl()
Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.