public final class SMFParseErrors extends Object
| Modifier and Type | Method and Description |
|---|---|
static SMFParseError |
errorException(Exception e)
Construct a parse error for the given exception.
|
static SMFParseError |
errorExpectedGot(String message,
String expected,
String received,
com.io7m.jlexing.core.LexicalPosition<URI> position)
Construct a parse error that indicates the expected and actual input.
|
static SMFParseError |
errorExpectedGotWithException(String message,
String expected,
String received,
com.io7m.jlexing.core.LexicalPosition<URI> position,
Exception exception)
Construct a parse error that indicates the expected and actual input.
|
static SMFParseError |
errorWithMessage(String message)
Construct a parse error for the given exception.
|
public static SMFParseError errorException(Exception e)
e - The exceptionpublic static SMFParseError errorWithMessage(String message)
message - The error messagepublic static SMFParseError errorExpectedGot(String message, String expected, String received, com.io7m.jlexing.core.LexicalPosition<URI> position)
message - An error messageexpected - The expected inputreceived - The received inputposition - The current positionpublic static SMFParseError errorExpectedGotWithException(String message, String expected, String received, com.io7m.jlexing.core.LexicalPosition<URI> position, Exception exception)
message - An error messageexpected - The expected inputreceived - The received inputposition - The current positionexception - An exception raised during parsingCopyright © 2017 <code@io7m.com> http://io7m.com