Package com.formdev.flatlaf.json
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.formdev.flatlaf.json.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends RuntimeException
An unchecked exception to indicate that an input does not qualify as valid JSON.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetColumn()Deprecated.UsegetLocation()insteadintgetLine()Deprecated.UsegetLocation()insteadLocationgetLocation()Returns the location at which the error occurred.intgetOffset()Deprecated.UsegetLocation()instead-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getLocation
public Location getLocation()
Returns the location at which the error occurred.- Returns:
- the error location
-
getOffset
@Deprecated public int getOffset()
Deprecated.UsegetLocation()insteadReturns the absolute character index at which the error occurred. The offset of the first character of a document is 0.- Returns:
- the character offset at which the error occurred, will be >= 0
-
getLine
@Deprecated public int getLine()
Deprecated.UsegetLocation()insteadReturns the line number in which the error occurred. The number of the first line is 1.- Returns:
- the line in which the error occurred, will be >= 1
-
getColumn
@Deprecated public int getColumn()
Deprecated.UsegetLocation()insteadReturns the column number at which the error occurred, i.e. the number of the character in its line. The number of the first character of a line is 1.- Returns:
- the column in which the error occurred, will be >= 1
-
-