|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tumblr.jumblr.exceptions.JumblrException
public class JumblrException
This exception class is for any connection issue, it attempts to pull a message out of the JSON response is possible
| Constructor Summary | |
|---|---|
JumblrException(org.scribe.model.Response response)
Instantiate a new JumblrException given a bad response to wrap |
|
| Method Summary | |
|---|---|
List<String> |
getErrors()
Get the errors returned from the API |
String |
getMessage()
Get the message for this error |
int |
getResponseCode()
Get the HTTP response code for this error |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, 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 JumblrException(org.scribe.model.Response response)
response - the response to wrap| Method Detail |
|---|
public int getResponseCode()
public String getMessage()
getMessage in class Throwablepublic List<String> getErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||