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:
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.int
getLine()
Deprecated.UsegetLocation()
insteadReturns the location at which the error occurred.int
Deprecated.UsegetLocation()
insteadMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
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
-
getLocation()
instead