Class LinkMLRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.incenp.linkml.core.LinkMLRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LinkMLInternalError, LinkMLValueError

public class LinkMLRuntimeException extends Exception
Base class for all exceptions caused by an error within the LinkML runtime.

In many cases, methods within the LinkML-Java runtime will actually only throw a more specific exception type (such as LinkMLInternalError or LinkMLValueError), but will declare throwing this more abstract type instead.

This is because the distinction between an “internal error” and a “value error” is sometimes fuzzy, and (at least for now), this runtime does not commit to enforcing a strict separation between the two.

See Also:
  • Constructor Details

    • LinkMLRuntimeException

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

      public LinkMLRuntimeException(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.