public class HiveSQLException extends SQLException
Constructor and Description |
---|
HiveSQLException() |
HiveSQLException(String reason) |
HiveSQLException(String reason,
String sqlState) |
HiveSQLException(String reason,
String sqlState,
int vendorCode) |
HiveSQLException(String reason,
String sqlState,
int vendorCode,
Throwable cause) |
HiveSQLException(String reason,
String sqlState,
Throwable cause) |
HiveSQLException(String reason,
Throwable cause) |
HiveSQLException(Throwable cause) |
HiveSQLException(TStatus status) |
Modifier and Type | Method and Description |
---|---|
static Throwable |
toCause(List<String> details)
Converts a flattened list of texts including the stack trace and the stack
traces of the nested causes into a
Throwable object. |
static List<String> |
toString(Throwable ex)
Converts a
Throwable object into a flattened list of texts including its stack trace
and the stack traces of the nested causes. |
TStatus |
toTStatus()
Converts current object to a
TStatus object |
static TStatus |
toTStatus(Exception e)
|
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public HiveSQLException()
public HiveSQLException(String reason)
reason
- public HiveSQLException(Throwable cause)
cause
- public HiveSQLException(String reason, String sqlState)
reason
- sqlState
- public HiveSQLException(String reason, Throwable cause)
reason
- cause
- public HiveSQLException(String reason, String sqlState, int vendorCode)
reason
- sqlState
- vendorCode
- public HiveSQLException(String reason, String sqlState, Throwable cause)
reason
- sqlState
- cause
- public HiveSQLException(String reason, String sqlState, int vendorCode, Throwable cause)
reason
- sqlState
- vendorCode
- cause
- public HiveSQLException(TStatus status)
public TStatus toTStatus()
TStatus
objectTStatus
objectpublic static List<String> toString(Throwable ex)
Throwable
object into a flattened list of texts including its stack trace
and the stack traces of the nested causes.public static Throwable toCause(List<String> details)
Throwable
object.details
- a flattened list of texts including the stack trace and the stack
traces of the nested causesThrowable
objectCopyright © 2019 The Apache Software Foundation. All rights reserved.