Package com.stardog.stark.io

# Class InvalidLiteral

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.stardog.stark.io.InvalidLiteral

All Implemented Interfaces:
  `Serializable`

public class InvalidLiteral extends 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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InvalidLiteral(String theMsg)`
  Create a new `InvalidLiteral`
  `InvalidLiteral(String theMsg, Throwable theCause)`
  Create a new `InvalidLiteral`

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

  - ### InvalidLiteral

    public InvalidLiteral(String theMsg)
    Create a new `InvalidLiteral`
    Parameters:
      `theMsg` - the error message

  - ### InvalidLiteral

    public InvalidLiteral(String theMsg, Throwable theCause)
    Create a new `InvalidLiteral`
    Parameters:
      `theMsg` - the error message
      `theCause` - the error cause