Package net.sourceforge.plantuml.json
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.sourceforge.plantuml.json.ParseException
-
- All Implemented Interfaces:
java.io.Serializable
public class ParseException extends java.lang.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 int
getColumn()
Deprecated.UsegetLocation()
insteadint
getLine()
Deprecated.UsegetLocation()
insteadLocation
getLocation()
Returns the location at which the error occurred.int
getOffset()
Deprecated.UsegetLocation()
instead
-
-
-
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
-
-