Package org.incenp.linkml.core
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
public class LinkMLValueError extends LinkMLRuntimeException
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
LinkMLInternalErrorand 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LinkMLValueError(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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LinkMLValueError
public LinkMLValueError(String msg)
Creates a new instance.- Parameters:
msg- A human-readable error message.
-
-