Class LinkMLValueError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.incenp.linkml.core.LinkMLRuntimeException
org.incenp.linkml.core.LinkMLValueError
- All Implemented Interfaces:
Serializable
An exception caused by some invalid data among the data manipulated by the
LinkML runtime.
This is notably the exception that would typically be thrown if the data the runtime is trying to deserialise does not correspond to what the runtime is expecting, based on the runtime’s knowledge of the LinkML schema that the data is supposed to be compliant with.
An informal way of outlining the difference between
LinkMLInternalError and this exception is:
- LinkMLInternalError: the code is messed up;
- LinkMLValueError: the data is messed up.
Or to put it differently, a LinkMLValueError is the LinkML-Java developers’ way of saying “it’s not our fault!” :)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLinkMLValueError(String msg) Creates a new instance.LinkMLValueError(String msg, Throwable inner) Creates a new instance, for an error that has another exception as the underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LinkMLValueError
Creates a new instance.- Parameters:
msg- A human-readable error message.
-
LinkMLValueError
-