Class UncheckedLexerException

  • All Implemented Interfaces:
    java.io.Serializable, Displayable

    public class UncheckedLexerException
    extends java.io.UncheckedIOException
    implements Displayable
    Exception representing problems parsing tokens or other problems with returned tokens from the Lexer, or how a token interacts with other in the whole structure. This exception is not meant to represent problems that solely comes from the interaction between tokens in an otherwise sound document, e.g. where the problem can not be pinned to a single token causing the problem.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String displayString()  
      LexerException getCause()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

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

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

      • UncheckedLexerException

        public UncheckedLexerException​(@Nonnull
                                       LexerException cause)
        Make exception cause by secondary problems.
        Parameters:
        cause - The cause of the exception.
    • Method Detail

      • getCause

        @Nonnull
        public LexerException getCause()
        Overrides:
        getCause in class java.io.UncheckedIOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • displayString

        @Nonnull
        public java.lang.String displayString()
        Specified by:
        displayString in interface Displayable
        Returns:
        A displayable string value for the object. This is meant to be printed e.g. to console output and interpreted by a human.