Module de.carne

Class CmdLineException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CmdLineException
    extends java.lang.Exception
    This Exception indicates an error during command line processing.
    See Also:
    CmdLineProcessor, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String arg()
      Gets the argument string causing the processing failure.
      java.lang.String cmdLine()
      Gets the command line string for which the processing failed.
      • Methods 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
    • Constructor Detail

      • CmdLineException

        public CmdLineException​(CmdLineProcessor cmdLine,
                                java.lang.String arg)
        Constructs a new CmdLineException instance.
        Parameters:
        cmdLine - the CmdLineProcessor throwing this exception.
        arg - the argument string causing this exception.
      • CmdLineException

        public CmdLineException​(CmdLineProcessor cmdLine,
                                java.lang.String arg,
                                java.lang.Throwable cause)
        Constructs a new CmdLineException instance.
        Parameters:
        cmdLine - the CmdLineProcessor throwing this exception.
        arg - the argument string causing this exception.
        cause - the causing exception.
    • Method Detail

      • cmdLine

        public java.lang.String cmdLine()
        Gets the command line string for which the processing failed.
        Returns:
        the command line string for which the processing failed.
      • arg

        public java.lang.String arg()
        Gets the argument string causing the processing failure.
        Returns:
        the argument string causing the processing failure.