org.apache.wicket.util.lang
Class Exceptions

java.lang.Object
  extended by org.apache.wicket.util.lang.Exceptions

public class Exceptions
extends Object

Author:
igor.vaynberg

Nested Class Summary
static interface Exceptions.IThrowableVisitor<T>
           
static class Exceptions.Visit<T>
          Represents a visit
 
Method Summary
static
<T extends Throwable>
T
findCause(Throwable throwable, Class<T> causeType)
           
static
<T> T
visit(Throwable throwable, Exceptions.IThrowableVisitor<T> visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findCause

public static <T extends Throwable> T findCause(Throwable throwable,
                                                Class<T> causeType)
Type Parameters:
T -
Parameters:
throwable -
causeType -
Returns:

visit

public static <T> T visit(Throwable throwable,
                          Exceptions.IThrowableVisitor<T> visitor)
Type Parameters:
T -
Parameters:
throwable -
visitor -
Returns:


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.