|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectThrowable
Exception
IOException
HCatException
public class HCatException
Class representing exceptions thrown by HCat.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HCatException(ErrorType errorType)
errorType - the error type
public HCatException(ErrorType errorType,
Throwable cause)
errorType - the error typecause - the cause
public HCatException(ErrorType errorType,
String extraMessage)
errorType - the error typeextraMessage - extra messages to add to the message string
public 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 message
public HCatException(String message,
Throwable cause)
message - the error messagecause - the cause| Method Detail |
|---|
public static String buildErrorMessage(ErrorType type,
String extraMessage,
Throwable cause)
type - the error typeextraMessage - the extra message stringcause - the cause for the exception
public boolean isRetriable()
public ErrorType getErrorType()
public int getErrorCode()
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||