public class FailedPreconditionRuntimeException extends AlluxioRuntimeException
(a) Use Unavailable if the client can retry just the failing call. (b) Use Aborted if the client should retry at a higher-level (e.g., restarting a read-modify-write sequence). (c) Use FailedPrecondition if the client should not retry until the system state has been explicitly fixed. E.g., if an "rmdir" fails because the directory is non-empty, FailedPrecondition should be thrown since the client should not retry unless they have first fixed up the directory by deleting files from it. (d) Use FailedPrecondition if the client performs conditional REST Get/Update/Delete on a resource and the resource on the server does not match the condition. E.g., conflicting read-modify-write on the same resource.
Constructor and Description |
---|
FailedPreconditionRuntimeException(String message)
Constructor.
|
FailedPreconditionRuntimeException(String message,
Throwable t)
Constructor.
|
FailedPreconditionRuntimeException(Throwable t)
Constructor.
|
from, from, from, from, getMessage, getStatus, isRetryable, toGrpcStatusException, toGrpcStatusRuntimeException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2023. All Rights Reserved.