Package com.qfs.multiversion
Class AbandonedEpochException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.activeviam.fwk.ActiveViamRuntimeException
-
- com.qfs.multiversion.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbandonedEpochException()Default constructor.AbandonedEpochException(String message)Constructor.AbandonedEpochException(String messageKey, Object... parameters)Constructor.AbandonedEpochException(String message, Throwable cause)Constructor.AbandonedEpochException(Throwable cause)Constructor.AbandonedEpochException(Throwable exception, String messageKey, Object... parameters)Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbandonedEpochExceptionnoEpoch(long wanted, IEpoch closest)Creates an exception when a wanted epoch is not found.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 messagecause- the cause
-
AbandonedEpochException
public AbandonedEpochException(String messageKey, Object... parameters)
Constructor.- Parameters:
messageKey- message templateparameters- parameters to inject into the message template
-
-
Method Detail
-
noEpoch
public static AbandonedEpochException noEpoch(long wanted, IEpoch closest)
Creates an exception when a wanted epoch is not found.- Parameters:
wanted- wanted epoch idclosest- suggested epoch, closest to the wanted one
-
-