Package com.io7m.cedarbridge.runtime.api
Interface CBSerializationContextErrorType
- All Known Subinterfaces:
CBSerializationContextType
- All Known Implementing Classes:
CBSerializationContextBSSIO,CBSerializationContextSize
public interface CBSerializationContextErrorType
The serialization context related to errors during serialization.
-
Method Summary
Modifier and TypeMethodDescriptionerrorUnrecognizedVariantCaseClass(Class<?> writer, Class<?> clazz) An unrecognized variant case class was encountered.errorUnrecognizedVariantIndex(Class<?> reader, int index) An unrecognized variant index was encountered.
-
Method Details
-
errorUnrecognizedVariantIndex
An unrecognized variant index was encountered.- Parameters:
reader- The class attempting the readindex- The index- Returns:
- An exception detailing the errors
-
errorUnrecognizedVariantCaseClass
An unrecognized variant case class was encountered.- Parameters:
writer- The class attempting the writeclazz- The class- Returns:
- An exception detailing the errors
-