@InterfaceAudience.Public public class RetriesExhaustedException extends IOException
Modifier and Type | Class and Description |
---|---|
static class |
RetriesExhaustedException.ThrowableWithExtraContext
Datastructure that allows adding more info around Throwable incident.
|
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
RetriesExhaustedException(int numRetries,
List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions)
Create a new RetriesExhaustedException from the list of prior failures.
|
RetriesExhaustedException(String msg) |
RetriesExhaustedException(String callableVitals,
int numTries,
List<Throwable> exceptions)
Create a new RetriesExhaustedException from the list of prior failures.
|
RetriesExhaustedException(String msg,
IOException e) |
Modifier and Type | Method and Description |
---|---|
private static String |
getMessage(int numRetries,
List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions) |
private static String |
getMessage(String callableVitals,
int numTries,
List<Throwable> exceptions) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public RetriesExhaustedException(String msg)
public RetriesExhaustedException(String msg, IOException e)
public RetriesExhaustedException(String callableVitals, int numTries, List<Throwable> exceptions)
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@InterfaceAudience.Private public RetriesExhaustedException(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions)
numRetries
- How many times we have retried, one less than total attemptsexceptions
- List of exceptions that failed before giving upprivate static String getMessage(String callableVitals, int numTries, List<Throwable> exceptions)
private static String getMessage(int numRetries, List<RetriesExhaustedException.ThrowableWithExtraContext> exceptions)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.