Package org.apache.hadoop.util.dynamic
Class DynMethods
java.lang.Object
org.apache.hadoop.util.dynamic.DynMethods
Dynamic method invocation.
Taken from
org.apache.parquet.util.DynMethods.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic classConvenience wrapper class aroundMethod. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Exception>
voidthrowIfInstance(Throwable t, Class<E> excClass) If the given throwable is an instance of E, throw it as an E.
-
Method Details
-
throwIfInstance
If the given throwable is an instance of E, throw it as an E.- Type Parameters:
E- the type of exception that will be thrown if throwable is an instance- Parameters:
t- an exception instanceexcClass- an exception class t may be an instance of- Throws:
E- if t is an instance of E
-