Package org.apache.hadoop.hbase.client
Class RetriesExhaustedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.hbase.client.RetriesExhaustedException
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 RetriesExhaustedWithDetailsException
Exception thrown by HTable methods when an attempt to do something (like commit changes) fails
 after a bunch of retries.
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData structure that allows adding more info around Throwable incident. - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionRetriesExhaustedException(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions) Create a new RetriesExhaustedException from the list of prior failures.RetriesExhaustedException(String callableVitals, int numTries, List<Throwable> exceptions) Create a new RetriesExhaustedException from the list of prior failures. - 
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetMessage(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions) private static StringgetMessage(String callableVitals, int numTries, List<Throwable> exceptions) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
- 
Field Details
- 
serialVersionUID
- See Also:
 
 
 - 
 - 
Constructor Details
- 
RetriesExhaustedException
 - 
RetriesExhaustedException
 - 
RetriesExhaustedException
Create a new RetriesExhaustedException from the list of prior failures.- Parameters:
 callableVitals- Details from the Callable we were using when we got this exception.numTries- The number of tries we madeexceptions- List of exceptions that failed before giving up
 - 
RetriesExhaustedException
@Private public RetriesExhaustedException(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions) Create a new RetriesExhaustedException from the list of prior failures.- Parameters:
 numRetries- How many times we have retried, one less than total attemptsexceptions- List of exceptions that failed before giving up
 
 - 
 - 
Method Details
- 
getMessage
 - 
getMessage
private static String getMessage(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions)  
 -