Class YangSyntaxErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opendaylight.yangtools.yang.parser.api.YangParserException
-
- org.opendaylight.yangtools.yang.parser.api.YangSyntaxErrorException
-
- All Implemented Interfaces:
Serializable
@Beta public class YangSyntaxErrorException extends YangParserException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description YangSyntaxErrorException(@Nullable SourceIdentifier source, int line, int charPositionInLine, String message)
YangSyntaxErrorException(@Nullable SourceIdentifier source, int line, int charPositionInLine, String message, @Nullable Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCharPositionInLine()
@NonNull String
getFormattedMessage()
int
getLine()
Optional<SourceIdentifier>
getSource()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
YangSyntaxErrorException
public YangSyntaxErrorException(@Nullable SourceIdentifier source, int line, int charPositionInLine, String message)
-
YangSyntaxErrorException
public YangSyntaxErrorException(@Nullable SourceIdentifier source, int line, int charPositionInLine, String message, @Nullable Throwable cause)
-
-
Method Detail
-
getSource
public final Optional<SourceIdentifier> getSource()
-
getLine
public final int getLine()
-
getCharPositionInLine
public final int getCharPositionInLine()
-
getFormattedMessage
public @NonNull String getFormattedMessage()
-
-