| Package | Description |
|---|---|
| org.apache.hadoop.hive.metastore |
| Modifier and Type | Method and Description |
|---|---|
<S extends Exception,T extends org.apache.thrift.TException> |
ExceptionHandler.convertIfInstance(Class<S> source,
Class<T> target)
Converts the input exception to the target instance of class
target,
if the input exception is the instance of class source, throws the
converted target exception. |
static ExceptionHandler |
ExceptionHandler.handleException(Exception e) |
<T extends Exception> |
ExceptionHandler.throwIfInstance(Class<T> t)
Throws if the input exception is the instance of the input class
|
<T1 extends Exception,T2 extends Exception> |
ExceptionHandler.throwIfInstance(Class<T1> te1,
Class<T2> te2)
Throws if the input exception is the instance of the one in the input classes
|
<T1 extends Exception,T2 extends Exception,T3 extends Exception> |
ExceptionHandler.throwIfInstance(Class<T1> te1,
Class<T2> te2,
Class<T3> te3)
Throws if the input exception is the instance of the one in the input classes
|
ExceptionHandler |
ExceptionHandler.toMetaExceptionIfInstance(String message,
Class<?>... clzs)
Creates the MetaException with the given message,
if the input exception is the instance of the one in the input classes,
throws the created MetaException.
|
Copyright © 2024 The Apache Software Foundation. All rights reserved.