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

public static class CommandLineParser.SyntaxException extends Exception
Exception thrown by a CommandLineParser when the line cannot be successfully parsed.
See Also:
  • Constructor Details

    • SyntaxException

      public SyntaxException(int offset, String message)
      Constructor.
      Parameters:
      offset - character offset of the error
      message - error description
    • SyntaxException

      public SyntaxException(int offset, String message, Throwable cause)
      Constructor.
      Parameters:
      offset - character offset of the error
      message - error description
      cause - chained exception
  • Method Details

    • getOffset

      public int getOffset()
      Get the character offset of the error.
      Returns:
      error offset