|
|||||||||
| 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.mapquest.MQException
com.mapquest.HTTPException
Class to extend a normal exception with an extra string for the HTTP response status.
Exec,
Serialized Form| Constructor Summary | |
HTTPException(java.lang.String status,
java.lang.String message)
Constructs a HTTPException with the specified HTTP response status and detail message. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
java.lang.String |
getStatus()
Returns the HTTP response status string. |
int |
hashCode()
Returns a hash code for this HTTPException. |
| 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 |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public HTTPException(java.lang.String status,
java.lang.String message)
status - the HTTP response status. Example: 400 Bad Request.message - the detail message.| Method Detail |
public java.lang.String getStatus()
public boolean equals(java.lang.Object otherObject)
equals in class MQExceptionotherObject - the object to compare this HTTPException against.
public int hashCode()
hashCode in class MQException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||