OpenShift Java Client 2.5.0.Final

com.openshift.client
Class OpenShiftEndpointException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.openshift.client.OpenShiftException
                  extended by 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

Constructor Summary
OpenShiftEndpointException(String url, Throwable cause, RestResponse response, String message, Object... arguments)
           
 
Method Summary
 RestResponse getRestResponse()
           
 List<Message> getRestResponseMessage(IField field)
          Returns the message for the given field.
 Messages getRestResponseMessages()
           
protected  String getUrl()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenShiftEndpointException

public OpenShiftEndpointException(String url,
                                  Throwable cause,
                                  RestResponse response,
                                  String message,
                                  Object... arguments)
Method Detail

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()

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.