Package com.io7m.smfj.parser.api
Interface SMFParseErrorType
-
- All Superinterfaces:
SMFErrorType
- All Known Implementing Classes:
SMFParseError
@Immutable public interface SMFParseErrorType extends SMFErrorType
The type of parse errors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<java.lang.Exception>
exception()
default java.lang.String
fullMessage()
com.io7m.jlexing.core.LexicalPosition<java.net.URI>
lexical()
java.lang.String
message()
-
-
-
Method Detail
-
lexical
@Parameter com.io7m.jlexing.core.LexicalPosition<java.net.URI> lexical()
- Returns:
- Lexical information
-
message
@Parameter java.lang.String message()
- Specified by:
message
in interfaceSMFErrorType
- Returns:
- The error message
-
exception
@Parameter java.util.Optional<java.lang.Exception> exception()
- Specified by:
exception
in interfaceSMFErrorType
- Returns:
- The exception raised, if any
-
fullMessage
@Lazy default java.lang.String fullMessage()
- Specified by:
fullMessage
in interfaceSMFErrorType
- Returns:
- A humanly-readable formatted error message
-
-