com.alienfactory.javamappy
Class JavaMappyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.alienfactory.javamappy.JavaMappyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ChunkLoadException

public class JavaMappyException
extends java.lang.RuntimeException

A JavaMappyException is thrown when something fishy happens!

Author:
Steve Eynon
See Also:
Serialized Form

Constructor Summary
JavaMappyException(java.lang.String strErrorMessage)
          Constructs a MapException with the given message.
JavaMappyException(java.lang.String strErrorMessage, java.lang.Exception nestedException)
          Constructs a MapException with a nested exception and an error message.
 
Method Summary
 java.lang.String getMessage()
          Returns the error message.
 java.lang.Exception getNestedException()
          Returns the nested exception if one exists.
 
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

JavaMappyException

public JavaMappyException(java.lang.String strErrorMessage)
Constructs a MapException with the given message.

Parameters:
strErrorMessage - an explanation this Exception was thrown

JavaMappyException

public JavaMappyException(java.lang.String strErrorMessage,
                          java.lang.Exception nestedException)
Constructs a MapException with a nested exception and an error message.

Parameters:
strErrorMessage - the MapException message
nestedException - the nested exception
Method Detail

getNestedException

public java.lang.Exception getNestedException()
Returns the nested exception if one exists. null is returned otherwise.

Returns:
the nested exception, or null.

getMessage

public java.lang.String getMessage()
Returns the error message. If this exception contains a nested exception, then its message is appended to the end.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message


Copyright © 2001-2009 Alien-Factory Ltd. All Rights Reserved.