Package org.tomlj
Class TomlParseError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.tomlj.TomlParseError
-
- All Implemented Interfaces:
java.io.Serializable
public final class TomlParseError extends java.lang.RuntimeException
An error that occurred while parsing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private TomlPosition
position
-
Constructor Summary
Constructors Constructor Description TomlParseError(java.lang.String message, TomlPosition position)
TomlParseError(java.lang.String message, TomlPosition position, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TomlPosition
position()
The position in the input where the error occurred.java.lang.String
toString()
-
-
-
Field Detail
-
position
private final TomlPosition position
-
-
Constructor Detail
-
TomlParseError
TomlParseError(java.lang.String message, TomlPosition position)
-
TomlParseError
TomlParseError(java.lang.String message, TomlPosition position, java.lang.Throwable cause)
-
-
Method Detail
-
position
public TomlPosition position()
The position in the input where the error occurred.- Returns:
- The position in the input where the error occurred.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-