org.melati.util
Class MelatiException

Package class diagram package MelatiException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.melati.util.MelatiException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CharsetException, InvalidUsageException, NotFoundException, PropertyException, ReconstructedHttpServletRequestMismatchException

public abstract class MelatiException
extends Exception

Abstract base class for all Exceptions within Melati.

See Also:
Serialized Form

Field Summary
 Exception subException
          A sub-exception we may be wrapping, otherwise null.
 
Constructor Summary
MelatiException()
          Constructor.
MelatiException(Exception subException)
          Constructor with sub-exception.
MelatiException(String message)
          Constructor with message.
MelatiException(String message, Exception subException)
          Constructor with message and pre-java 1.4 initial cause.
 
Method Summary
 String getMessage()
          
 Exception innermostException()
           
 void printStackTrace()
          
 void printStackTrace(PrintStream s)
          
 void printStackTrace(PrintWriter w)
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subException

public Exception subException
A sub-exception we may be wrapping, otherwise null.

Constructor Detail

MelatiException

public MelatiException(Exception subException)
Constructor with sub-exception.


MelatiException

public MelatiException(String message,
                       Exception subException)
Constructor with message and pre-java 1.4 initial cause.


MelatiException

public MelatiException()
Constructor.


MelatiException

public MelatiException(String message)
Constructor with message.

Parameters:
message - a text
Method Detail

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

innermostException

public Exception innermostException()
Returns:
the actual cause

printStackTrace

public void printStackTrace()

Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace()

printStackTrace

public void printStackTrace(PrintStream s)

Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintStream)

printStackTrace

public void printStackTrace(PrintWriter w)

Overrides:
printStackTrace in class Throwable
See Also:
Throwable.printStackTrace(java.io.PrintWriter)


Copyright © 2000-2010 PanEris. All Rights Reserved.