public class HCatException extends IOException
Constructor and Description |
---|
HCatException(ErrorType errorType)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
String extraMessage)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
String extraMessage,
Throwable cause)
Instantiates a new hcat exception.
|
HCatException(ErrorType errorType,
Throwable cause)
Instantiates a new hcat exception.
|
HCatException(String message)
Instantiates a new hcat exception.
|
HCatException(String message,
Throwable cause)
Instantiates a new hcat exception.
|
Modifier and Type | Method and Description |
---|---|
static String |
buildErrorMessage(ErrorType type,
String extraMessage,
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.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public HCatException(ErrorType errorType)
errorType
- the error typepublic HCatException(ErrorType errorType, Throwable cause)
errorType
- the error typecause
- the causepublic HCatException(ErrorType errorType, String extraMessage)
errorType
- the error typeextraMessage
- extra messages to add to the message stringpublic HCatException(ErrorType errorType, String extraMessage, Throwable cause)
errorType
- the error typeextraMessage
- extra messages to add to the message stringcause
- the causepublic HCatException(String message)
message
- the error messagepublic static String buildErrorMessage(ErrorType type, String extraMessage, Throwable cause)
type
- the error typeextraMessage
- the extra message stringcause
- the cause for the exceptionpublic boolean isRetriable()
public ErrorType getErrorType()
public int getErrorCode()
Copyright © 2017 The Apache Software Foundation. All rights reserved.