|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.stackmob.sdk.exception.StackMobException
com.stackmob.sdk.exception.StackMobHTTPResponseException
public class StackMobHTTPResponseException
An exception generated by a failed request. It contains information about the failure.
| Constructor Summary | |
|---|---|
StackMobHTTPResponseException(Integer code,
List<Map.Entry<String,String>> headers,
byte[] body)
create a new exception with info about the error response |
|
| Method Summary | |
|---|---|
byte[] |
getBody()
get the response body |
Integer |
getCode()
get the response code |
List<Map.Entry<String,String>> |
getHeaders()
get the response headers |
| 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 |
|---|
public StackMobHTTPResponseException(Integer code,
List<Map.Entry<String,String>> headers,
byte[] body)
code - the response codeheaders - headers from the responsebody - the response body| Method Detail |
|---|
public Integer getCode()
public List<Map.Entry<String,String>> getHeaders()
public byte[] getBody()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||