org.jclouds.functions
Class ExceptionToValueOrPropagate<E extends Exception,T>

java.lang.Object
  extended by org.jclouds.functions.ExceptionToValueOrPropagate<E,T>
All Implemented Interfaces:
com.google.common.base.Function<Exception,T>

public class ExceptionToValueOrPropagate<E extends Exception,T>
extends Object
implements com.google.common.base.Function<Exception,T>

Author:
Adrian Cole

Constructor Summary
ExceptionToValueOrPropagate(Class<E> matchingClass, T value)
           
 
Method Summary
 T apply(Exception from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ExceptionToValueOrPropagate

public ExceptionToValueOrPropagate(Class<E> matchingClass,
                                   @Nullable
                                   T value)
Method Detail

apply

public T apply(Exception from)
Specified by:
apply in interface com.google.common.base.Function<Exception,T>


Copyright © 2009-2011 jclouds. All Rights Reserved.