All Implemented Interfaces:
Serializable, ValidationResult

public class ConversionException extends PhenopacketToolsException implements ValidationResult
A PhenopacketToolsException that is thrown by PhenopacketConverter in case the provided data has incorrect format.

This can happen if e.g. the payload to PhenopacketFormatConverter.toJson(byte[]) is not valid JSON.

ConversionException implements ValidationResult so that it can be reported by a PhenopacketValidator.

See Also: