org.apache.hadoop.hive.ql.metadata
Class HiveException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.hive.ql.metadata.HiveException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- HiveAccessControlException, HiveAuthzPluginException, HiveFatalException, InvalidTableException, LockException, MapJoinMemoryExhaustionException, SemanticException
public class HiveException
- extends Exception
Generic exception class for Hive.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
HiveException
public HiveException()
HiveException
public HiveException(String message)
HiveException
public HiveException(Throwable cause)
HiveException
public HiveException(String message,
Throwable cause)
HiveException
public HiveException(ErrorMsg message,
String... msgArgs)
HiveException
public HiveException(Throwable cause,
ErrorMsg errorMsg,
String... msgArgs)
- This is the recommended constructor to use since it helps use
canonical messages throughout.
- Parameters:
errorMsg - Canonical error messagemsgArgs - message arguments if message is parametrized; must be null is message takes no arguments
getCanonicalErrorMsg
public ErrorMsg getCanonicalErrorMsg()
- Returns:
ErrorMsg.GENERIC_ERROR by default
Copyright © 2014 The Apache Software Foundation. All rights reserved.