com.twitter.common.base
Interface ExceptionalSupplier<T,E extends Exception>

Type Parameters:
T - The supplied value type.
E - The type of exception that the supplier throws.
All Known Subinterfaces:
Supplier<T>, SupplierE<T>
All Known Implementing Classes:
CachingSupplier, CallableExceptionalSupplier

public interface ExceptionalSupplier<T,E extends Exception>

An interface that captures a source of data.


Method Summary
 T get()
          Supplies an item, possibly throwing E in the process of obtaining the item.
 

Method Detail

get

T get()
      throws E extends Exception
Supplies an item, possibly throwing E in the process of obtaining the item.

Returns:
the result of the computation
Throws:
E - if there was a problem performing the work
E extends Exception