org.apache.hadoop.hive.ql.metadata
Class HiveException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
HiveException()
           
HiveException(ErrorMsg message, String... msgArgs)
           
HiveException(String message)
           
HiveException(String message, Throwable cause)
           
HiveException(Throwable cause)
           
HiveException(Throwable cause, ErrorMsg errorMsg, String... msgArgs)
          This is the recommended constructor to use since it helps use canonical messages throughout.
 
Method Summary
 ErrorMsg getCanonicalErrorMsg()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 message
msgArgs - message arguments if message is parametrized; must be null is message takes no arguments
Method Detail

getCanonicalErrorMsg

public ErrorMsg getCanonicalErrorMsg()
Returns:
ErrorMsg.GENERIC_ERROR by default


Copyright © 2014 The Apache Software Foundation. All rights reserved.