org.apache.commons.latka
Class LatkaException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.latka.LatkaException
All Implemented Interfaces:
java.io.Serializable

public class LatkaException
extends java.lang.Exception

Latka throws this exception to the client whenever a problem occurs that is not covered by one of the standard JDK exceptions (validation errors, SAX problems, etc.)

Author:
Morgan Delagrange
See Also:
Serialized Form

Constructor Summary
LatkaException(java.lang.Exception e)
          Wrapped exception.
LatkaException(java.lang.String message)
          Standard exception
 
Method Summary
 java.lang.Exception getException()
          Get a wrapped exception
static void printWrappedExceptions(LatkaException e)
          Print a wrapped exception to stdout and, in the case of SAXExceptions, an additional wrapped exception.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LatkaException

public LatkaException(java.lang.Exception e)
Wrapped exception.

Parameters:
e - exception to wrap

LatkaException

public LatkaException(java.lang.String message)
Standard exception

Method Detail

getException

public java.lang.Exception getException()
Get a wrapped exception

Returns:
a wrapped exception, or null if no wrapped exception exists.

printWrappedExceptions

public static void printWrappedExceptions(LatkaException e)
Print a wrapped exception to stdout and, in the case of SAXExceptions, an additional wrapped exception. This method does _not_ print the exception's message itself.

Parameters:
e - LatkaException with wrapped messages.


Copyright © 2001 Apache Software Foundation. Documenation generated September 27 2004.