Class 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 Detail

      • SuspectedNotCurrentLeaderException

        public SuspectedNotCurrentLeaderException​(@CompileTimeConstant
                                                  String logMessage,
                                                  com.palantir.logsafe.Arg<?>... args)
    • Method Detail

      • getLogMessage

        @Safe
        public @Safe String getLogMessage()
        Specified by:
        getLogMessage in interface com.palantir.logsafe.SafeLoggable
      • getArgs

        public List<com.palantir.logsafe.Arg<?>> getArgs()
        Specified by:
        getArgs in interface com.palantir.logsafe.SafeLoggable