org.moyoman.util
Class InternalErrorException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.moyoman.util.InternalErrorException
All Implemented Interfaces:
Serializable

public class InternalErrorException
extends Exception

This exception is thrown when an internal error occurs, for example, being unable to read a configuration file.

See Also:
Serialized Form

Field Summary
private  String message
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
InternalErrorException(Exception e)
          Create an InternalErrorException object from another Exception.
InternalErrorException(String msg)
          Create the InternalErrorException object.
 
Method Summary
 String toString()
          Return the reason for the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

private String message
Constructor Detail

InternalErrorException

public InternalErrorException(String msg)
Create the InternalErrorException object.

Parameters:
msg - The message explaining the reason for the exception.

InternalErrorException

public InternalErrorException(Exception e)
Create an InternalErrorException object from another Exception.

Parameters:
e - The exception to be converted to an InternalErrorException.
Method Detail

toString

public String toString()
Return the reason for the exception.

Overrides:
toString in class Throwable
Returns:
The message.