Class InvalidLiteral

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidLiteral
    extends java.lang.RuntimeException

    Exception thrown when a Literal encountered during parsing is syntactically correct, but otherwise invalid. Examples of invalid literals include an unknown language, unknown datatype, a user-defined datatype that is not registered, or a valid datatype, such as `xsd:long` whose value is not correct for it's type, eg "twelve".

    Since:
    1.0
    Version:
    1.0
    Author:
    Michael Grove
    See Also:
    LanguageHandler, DatatypeHandler, Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidLiteral

        public InvalidLiteral​(java.lang.String theMsg)
        Create a new InvalidLiteral
        Parameters:
        theMsg - the error message
      • InvalidLiteral

        public InvalidLiteral​(java.lang.String theMsg,
                              java.lang.Throwable theCause)
        Create a new InvalidLiteral
        Parameters:
        theMsg - the error message
        theCause - the error cause