Class 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 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 Details

    • LinkMLValueError

      public LinkMLValueError(String msg)
      Creates a new instance.
      Parameters:
      msg - A human-readable error message.
    • LinkMLValueError

      public LinkMLValueError(String msg, Throwable inner)
      Creates a new instance, for an error that has another exception as the underlying cause.
      Parameters:
      msg - A human-readable error message.
      inner - The original exception that caused the present exception to be thrown.