Class MismatchedDBRTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.epics.archiverappliance.retrieval.MismatchedDBRTypeException
-
- All Implemented Interfaces:
Serializable
public class MismatchedDBRTypeException extends IOException
Thrown when we have a mismatch in what config tells us and what a stream tells us. A mismatch in DBR types can be a problem when transporting data using binary formats which are type sensitive. Rather than silently lose precision, we throw an exception and perhaps ignore the stream.- Author:
- mshankar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MismatchedDBRTypeException(String pvName, ArchDBRTypes configDBRType, String sourceDesc, ArchDBRTypes streamDBRType)
-
Method Summary
Modifier and Type Method Description ArchDBRTypes
getConfigDBRType()
String
getMessage()
String
getPvName()
String
getSourceDesc()
ArchDBRTypes
getStreamDBRType()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MismatchedDBRTypeException
public MismatchedDBRTypeException(String pvName, ArchDBRTypes configDBRType, String sourceDesc, ArchDBRTypes streamDBRType)
-
-
Method Detail
-
getPvName
public String getPvName()
- Returns:
- the pvName
-
getConfigDBRType
public ArchDBRTypes getConfigDBRType()
- Returns:
- the configDBRType
-
getSourceDesc
public String getSourceDesc()
- Returns:
- the sourceDesc
-
getStreamDBRType
public ArchDBRTypes getStreamDBRType()
- Returns:
- the streamDBRType
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-