Class ChangeInYearsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.epics.archiverappliance.retrieval.ChangeInYearsException
- All Implemented Interfaces:
Serializable
External integrations may not have the same contract as PB the plugin re year partitions.
This exception is used to communicate year transition info OOB info to folks interested in it.
This matters only in the context of the server and only for the RAW retrieval mime type.
Others may happily ignore this exception.
Unfortunately, the iterator interface does not allow for custom exceptions so we have to make this a RuntimeException.
Therefore, others must happily ignore this exception.
- Author:
- mshankar
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ChangeInYearsException
public ChangeInYearsException(short previousYear, short currentYear)
-
-
Method Details
-
getPreviousYear
public short getPreviousYear()- Returns:
- the previousYear
-
getCurrentYear
public short getCurrentYear()- Returns:
- the currentYear
-