Package org.dellroad.jct.core.simple
Class CommandLineParser.SyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dellroad.jct.core.simple.CommandLineParser.SyntaxException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- CommandLineParser
Exception thrown by a
CommandLineParser
when the line cannot be successfully parsed.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSyntaxException
(int offset, String message) Constructor.SyntaxException
(int offset, String message, Throwable cause) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SyntaxException
Constructor.- Parameters:
offset
- character offset of the errormessage
- error description
-
SyntaxException
Constructor.- Parameters:
offset
- character offset of the errormessage
- error descriptioncause
- chained exception
-
-
Method Details
-
getOffset
public int getOffset()Get the character offset of the error.- Returns:
- error offset
-