public class HCatException
extends java.io.IOException
| Constructor and Description |
|---|
HCatException(ErrorType errorType)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
java.lang.String extraMessage)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
java.lang.String extraMessage,
java.lang.Throwable cause)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
java.lang.Throwable cause)
Instantiates a new hcat exception.
|
HCatException(java.lang.String message)
Instantiates a new hcat exception.
|
HCatException(java.lang.String message,
java.lang.Throwable cause)
Instantiates a new hcat exception.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
buildErrorMessage(ErrorType type,
java.lang.String extraMessage,
java.lang.Throwable cause)
Builds the error message string.
|
int |
getErrorCode()
Gets the error code.
|
ErrorType |
getErrorType()
Gets the error type.
|
boolean |
isRetriable()
Is this a retriable error.
|
java.lang.String |
toString() |
public HCatException(ErrorType errorType)
errorType - the error typepublic HCatException(ErrorType errorType, java.lang.Throwable cause)
errorType - the error typecause - the causepublic HCatException(ErrorType errorType, java.lang.String extraMessage)
errorType - the error typeextraMessage - extra messages to add to the message stringpublic HCatException(ErrorType errorType, java.lang.String extraMessage, java.lang.Throwable cause)
errorType - the error typeextraMessage - extra messages to add to the message stringcause - the causepublic HCatException(java.lang.String message)
message - the error messagepublic HCatException(java.lang.String message,
java.lang.Throwable cause)
message - the error messagecause - the causepublic static java.lang.String buildErrorMessage(ErrorType type, java.lang.String extraMessage, java.lang.Throwable cause)
type - the error typeextraMessage - the extra message stringcause - the cause for the exceptionpublic boolean isRetriable()
public ErrorType getErrorType()
public int getErrorCode()
public java.lang.String toString()
toString in class java.lang.ThrowableCopyright © 2012 The Apache Software Foundation