public class AllNodesFailedException extends DriverException
getAllErrors()
where they are grouped by node.Modifier | Constructor and Description |
---|---|
protected |
AllNodesFailedException(String message,
ExecutionInfo executionInfo,
Iterable<Map.Entry<Node,List<Throwable>>> errors) |
protected |
AllNodesFailedException(String message,
ExecutionInfo executionInfo,
Map<Node,Throwable> errors)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DriverException |
copy()
Copy the exception.
|
static AllNodesFailedException |
fromErrors(List<Map.Entry<Node,Throwable>> errors) |
static AllNodesFailedException |
fromErrors(Map<Node,Throwable> errors)
Deprecated.
Use
fromErrors(List) instead. |
Map<Node,List<Throwable>> |
getAllErrors()
An immutable map containing all errors on each tried node.
|
Map<Node,Throwable> |
getErrors()
Deprecated.
Use
getAllErrors() instead. |
AllNodesFailedException |
reword(String newMessage) |
getExecutionInfo, setExecutionInfo
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
@Deprecated protected AllNodesFailedException(@NonNull String message, @Nullable ExecutionInfo executionInfo, @NonNull Map<Node,Throwable> errors)
AllNodesFailedException(String, ExecutionInfo, Iterable)
instead.@NonNull @Deprecated public static AllNodesFailedException fromErrors(@Nullable Map<Node,Throwable> errors)
fromErrors(List)
instead.@NonNull public static AllNodesFailedException fromErrors(@Nullable List<Map.Entry<Node,Throwable>> errors)
@NonNull @Deprecated public Map<Node,Throwable> getErrors()
getAllErrors()
instead.@NonNull public Map<Node,List<Throwable>> getAllErrors()
@NonNull public DriverException copy()
DriverException
This returns a new exception, equivalent to the original one, except that because a new object is created in the current thread, the top-most element in the stacktrace of the exception will refer to the current thread. The original exception may or may not be included as the copy's cause, depending on whether that is deemed useful (this is left to the discretion of each implementation).
This is intended for the synchronous wrapper methods of the driver, in order to produce a more user-friendly stack trace (that includes the line in the user code where the driver rethrew the error).
copy
in class DriverException
@NonNull public AllNodesFailedException reword(String newMessage)
Copyright © 2017–2023. All rights reserved.