us.zuercher.gpx2map
Class UnknownMapSourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by us.zuercher.gpx2map.Gpx2MapException
              extended by us.zuercher.gpx2map.UnknownMapSourceException
All Implemented Interfaces:
Serializable

public class UnknownMapSourceException
extends Gpx2MapException

UnknownMapSourceException represents an unknown MapSource name.

Author:
Stephan Zuercher
See Also:
Serialized Form

Field Summary
private  String mapSourceName
          Map source name that caused the exception.
 
Constructor Summary
UnknownMapSourceException(String mapSourceName)
          Constructs an UnknownMapSourceException.
UnknownMapSourceException(String mapSourceName, Throwable cause)
          Constructs an UnknownMapSourceException.
 
Method Summary
 String getMapSourceName()
          Returns the name of the map source that could not be found.
 
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
 

Field Detail

mapSourceName

private final String mapSourceName
Map source name that caused the exception.

Constructor Detail

UnknownMapSourceException

public UnknownMapSourceException(String mapSourceName)
Constructs an UnknownMapSourceException.

Parameters:
mapSourceName - the map source name that was not found

UnknownMapSourceException

public UnknownMapSourceException(String mapSourceName,
                                 Throwable cause)
Constructs an UnknownMapSourceException.

Parameters:
mapSourceName - the map source name that was not found
cause - the root cause
Method Detail

getMapSourceName

public String getMapSourceName()
Returns the name of the map source that could not be found.

Returns:
the name of the map source that could not be found.