org.geonames
Class GeoNamesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.geonames.GeoNamesException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InsufficientStyleException, InvalidParameterException

public class GeoNamesException
extends Exception

Since:
20.01.2011
Author:
marc
See Also:
Serialized Form

Constructor Summary
GeoNamesException(int exceptionCode, String msg)
           
GeoNamesException(String msg)
           
 
Method Summary
 int getExceptionCode()
           
 String getMessage()
           
 
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

GeoNamesException

public GeoNamesException(int exceptionCode,
                         String msg)

GeoNamesException

public GeoNamesException(String msg)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
the message

getExceptionCode

public int getExceptionCode()
Returns:
the exceptionCode