Class ConversionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.phenopackets.phenopackettools.core.PhenopacketToolsException
org.phenopackets.phenopackettools.validator.core.ConversionException
- All Implemented Interfaces:
Serializable
,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:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConversionException
public ConversionException() -
ConversionException
-
-
Method Details
-
validatorInfo
- Specified by:
validatorInfo
in interfaceValidationResult
- Returns:
- information about the validator used to create the
ValidationResult
.
-
level
- Specified by:
level
in interfaceValidationResult
- Returns:
- level of the validation
-
category
- Specified by:
category
in interfaceValidationResult
- Returns:
- an error category.
-
message
- Specified by:
message
in interfaceValidationResult
- Returns:
- specific error message
-