Package org.openstack4j.api.exceptions
Class ServerResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openstack4j.api.exceptions.OS4JException
-
- org.openstack4j.api.exceptions.ResponseException
-
- org.openstack4j.api.exceptions.ServerResponseException
-
- All Implemented Interfaces:
Serializable
public class ServerResponseException extends ResponseException
Captures Server based Errors (Return Codes between 500 - 600)- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.openstack4j.api.exceptions.ResponseException
requestId, requestInfo, status
-
-
Constructor Summary
Constructors Constructor Description ServerResponseException(String message, int status)ServerResponseException(String message, int status, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusCodegetStatusCode()StringtoString()-
Methods inherited from class org.openstack4j.api.exceptions.ResponseException
getStatus, mapException, mapException, mapException, mapException, setRequestId, setRequestInfo
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getStatusCode
public StatusCode getStatusCode()
- Returns:
- the status code mapping for the current
ResponseException.getStatus()
-
toString
public String toString()
- Overrides:
toStringin classResponseException
-
-