@InterfaceAudience.Public @InterfaceStability.Stable public class HiveException extends Exception
Constructor and Description |
---|
HiveException() |
HiveException(ErrorMsg errorMsg) |
HiveException(ErrorMsg message,
String... msgArgs) |
HiveException(String message) |
HiveException(String message,
Throwable cause) |
HiveException(Throwable cause) |
HiveException(Throwable cause,
ErrorMsg errorMsg) |
HiveException(Throwable cause,
ErrorMsg errorMsg,
String... msgArgs) |
HiveException(Throwable cause,
String remErrMsg,
ErrorMsg errorMsg,
String... msgArgs)
This is the recommended constructor to use since it helps use
canonical messages throughout and propagate remote errors.
|
Modifier and Type | Method and Description |
---|---|
ErrorMsg |
getCanonicalErrorMsg() |
String |
getRemoteErrorMsg() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public HiveException()
public HiveException(String message)
public HiveException(Throwable cause)
public HiveException(ErrorMsg errorMsg)
public HiveException(Throwable cause, String remErrMsg, ErrorMsg errorMsg, String... msgArgs)
errorMsg
- Canonical error messagemsgArgs
- message arguments if message is parametrized; must be null
is message takes no argumentspublic ErrorMsg getCanonicalErrorMsg()
ErrorMsg.GENERIC_ERROR
by defaultpublic String getRemoteErrorMsg()
Copyright © 2022 The Apache Software Foundation. All rights reserved.