Package net.morimekta.util.lexer
Class UncheckedLexerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.io.UncheckedIOException
-
- net.morimekta.util.lexer.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 theLexer
, 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
-
-
Constructor Summary
Constructors Constructor Description UncheckedLexerException(LexerException cause)
Make exception cause by secondary problems.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
displayString()
LexerException
getCause()
java.lang.String
toString()
-
-
-
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 classjava.io.UncheckedIOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
displayString
@Nonnull public java.lang.String displayString()
- Specified by:
displayString
in interfaceDisplayable
- Returns:
- A displayable string value for the object. This is meant to be printed e.g. to console output and interpreted by a human.
-
-