Package org.apache.parquet
Class Exceptions
- java.lang.Object
-
- org.apache.parquet.Exceptions
-
public class Exceptions extends Object
-
-
Constructor Summary
Constructors Constructor Description Exceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends Exception>
voidthrowIfInstance(Throwable t, Class<E> excClass)
If the given throwable is an instance of E, throw it as an E.
-
-
-
Method Detail
-
throwIfInstance
public static <E extends Exception> void throwIfInstance(Throwable t, Class<E> excClass) throws E extends Exception
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 EE extends Exception
-
-