Z - Throwable typepublic interface ExceptionChainer<Z extends java.lang.Throwable>
ExceptionChainer<SomeException> chainer = new ExceptionChainer<SomeException>()
{
public SomeException chain(Throwable t)
{
if (t instanceof SomeException)
return (SomeException) t;
else
return new SomeExcepion(t);
}
};
| Modifier and Type | Method and Description |
|---|---|
Z |
chain(java.lang.Throwable t) |
Z chain(java.lang.Throwable t)