Package com.palantir.leader
Class SuspectedNotCurrentLeaderException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.palantir.leader.SuspectedNotCurrentLeaderException
-
- All Implemented Interfaces:
com.palantir.logsafe.SafeLoggable
,Serializable
public class SuspectedNotCurrentLeaderException extends RuntimeException implements com.palantir.logsafe.SafeLoggable
This exception may be thrown when an operation that indicates a possible leadership loss has occurred. This does not mean that leadership has been lost; the handler should check the leadership status and act accordingly.If leadership was not actually lost, the underlying object may be in an inconsistent state, and will be recreated before further requests are sent to it.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuspectedNotCurrentLeaderException(String logMessage, com.palantir.logsafe.Arg<?>... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.palantir.logsafe.Arg<?>>
getArgs()
@Safe String
getLogMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SuspectedNotCurrentLeaderException
public SuspectedNotCurrentLeaderException(@CompileTimeConstant String logMessage, com.palantir.logsafe.Arg<?>... args)
-
-