bpiwowar.argparser
Class StringScanException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by bpiwowar.argparser.ArgParserException
              extended by bpiwowar.argparser.StringScanException
All Implemented Interfaces:
Serializable

public class StringScanException
extends ArgParserException

Exception class used by StringScanner when command line arguments do not parse correctly.

Author:
John E. Lloyd, Winter 2001
See Also:
StringScanner, Serialized Form

Constructor Summary
StringScanException()
           
StringScanException(int idx, String msg)
           
StringScanException(String msg)
          Creates a new StringScanException with the given message.
StringScanException(String format, Object... args)
           
StringScanException(String message, Throwable cause)
           
StringScanException(String format, Throwable cause, Object... args)
           
StringScanException(Throwable cause)
           
 
Method Summary
 int getFailIndex()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringScanException

public StringScanException()

StringScanException

public StringScanException(String message,
                           Throwable cause)

StringScanException

public StringScanException(Throwable cause)

StringScanException

public StringScanException(String format,
                           Object... args)

StringScanException

public StringScanException(String format,
                           Throwable cause,
                           Object... args)

StringScanException

public StringScanException(String msg)
Creates a new StringScanException with the given message.

Parameters:
msg - Error message
See Also:
StringScanner

StringScanException

public StringScanException(int idx,
                           String msg)
Method Detail

getFailIndex

public int getFailIndex()


Copyright © 2013. All Rights Reserved.