public interface

ExceptionChainer

net.schmizz.concurrent.ExceptionChainer<Z extends java.lang.Throwable>

Class Overview

Chains an exception to desired type. For example:

 ExceptionChainer<SomeException> chainer = new ExceptionChainer<SomeException>()
 {
     public SomeException chain(Throwable t)
     {
         if (t instanceof SomeException)
             return (SomeException) t;
         else
             return new SomeExcepion(t);
     }
 };
 

Summary

Public Methods
abstract Z chain(Throwable t)

Public Methods

public abstract Z chain (Throwable t)

Parameters
t