Class AbandonedEpochException

All Implemented Interfaces:
Serializable

public class AbandonedEpochException extends ActiveViamRuntimeException
Runtime exception thrown when a reader requires a version at an epoch in the past and that version has already been abandoned by the multiversion holder.
Author:
ActiveViam
See Also:
  • Constructor Details

    • AbandonedEpochException

      public AbandonedEpochException()
      Default constructor.
    • AbandonedEpochException

      public AbandonedEpochException(String message)
      Constructor.
      Parameters:
      message - the detailed message
    • AbandonedEpochException

      public AbandonedEpochException(Throwable cause)
      Constructor.
      Parameters:
      cause - the cause
    • AbandonedEpochException

      public AbandonedEpochException(String message, Throwable cause)
      Constructor.
      Parameters:
      message - the detailed message
      cause - the cause
    • AbandonedEpochException

      public AbandonedEpochException(String messageKey, Object... parameters)
      Constructor.
      Parameters:
      messageKey - message template
      parameters - parameters to inject into the message template
    • AbandonedEpochException

      public AbandonedEpochException(Throwable exception, String messageKey, Object... parameters)
      Constructor.
      Parameters:
      exception - the cause
      messageKey - message template
      parameters - parameters to inject into the message template
  • Method Details

    • noEpoch

      public static AbandonedEpochException noEpoch(long wanted, IEpoch closest)
      Creates an exception when a wanted epoch is not found.
      Parameters:
      wanted - wanted epoch id
      closest - suggested epoch, closest to the wanted one