Class ChangeInYearsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.epics.archiverappliance.retrieval.ChangeInYearsException
-
- All Implemented Interfaces:
Serializable
public class ChangeInYearsException extends RuntimeException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChangeInYearsException(short previousYear, short currentYear)
-
Method Summary
Modifier and Type Method Description short
getCurrentYear()
short
getPreviousYear()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-