Z - Throwable typepublic interface ExceptionChainer<Z extends 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(Throwable t) |
Copyright © 2009–2014. All rights reserved.