com.mapquest
Class MQException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.mapquest.MQException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HTTPException

public class MQException
extends java.lang.Exception

Class to extend a normal exception. Use to catch/throw any generic exceptions.

See Also:
HTTPException, Serialized Form

Constructor Summary
MQException(java.lang.String message)
          Constructs a MQException with the specified detail message.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int hashCode()
          Returns a hash code for this MQException.
 
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

MQException

public MQException(java.lang.String message)
Constructs a MQException with the specified detail message.

Parameters:
message - the detail message.
Method Detail

equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a MQException object that has same attributes as this object.

Parameters:
otherObject - the object to compare this MQException against.
Returns:
true if the MQException objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this MQException.

Returns:
a hash code value for this MQException.