This project has retired. For details please refer to its
Attic page.
ExceptionHandler (Apache Cocoon 3: Parent 3.0.0-beta-1-SNAPSHOT API)
org.apache.cocoon.sitemap.util
Class ExceptionHandler
java.lang.Object
org.apache.cocoon.sitemap.util.ExceptionHandler
public class ExceptionHandler
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandler
public ExceptionHandler()
getInvocationException
public static InvocationException getInvocationException(Throwable throwable)
- Wraps the given
throwable
into an InvocationException
, if that is necessary.
If the given throwable
is already an instance of InvocationException
, the given
throwable
is returned.
- Parameters:
throwable
- The throwable to wrap inside an InvocationException
.
- Returns:
- The (possibly) wrapped
throwable
.
getCause
public static Throwable getCause(Throwable throwable)
- Get the underlying cause of the given
exception
.
Technically this unwraps the given exception
until one of the following happens
- there is no more underlying cause
- an Exception other than
InvocationException
or one of its subclasses is encountered
This method will return null
if and only if the given exception
is
null
.
- Parameters:
throwable
- The Throwable
to get the cause for.
- Returns:
- The underlying cause.
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.