edu.umd.cfar.lamp.apploader.prefs
Class ArgumentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byedu.umd.cfar.lamp.apploader.prefs.PreferenceException
              extended byedu.umd.cfar.lamp.apploader.prefs.ArgumentException
All Implemented Interfaces:
java.io.Serializable

public class ArgumentException
extends PreferenceException

Thrown when there is an error on the command line. The message should be one that can be printed to the end user to indicate that there was an error. I'd recommend you get the text from the lal:PreferenceTrigger node to get a localized message.

Since:
Apr 26, 2003
Author:
Watch
See Also:
Serialized Form

Constructor Summary
ArgumentException()
          Default constructor, with null message.
ArgumentException(java.lang.String message)
          Throws a pref exception with the given detail message.
ArgumentException(java.lang.String message, java.lang.Throwable cause)
          Encapsulates the throwable with a ArgumentException and some additional text.
ArgumentException(java.lang.Throwable cause)
          Encapsulates the throwable with a ArgumentException to avoid giving unnecessary information to callers.
 
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

ArgumentException

public ArgumentException(java.lang.Throwable cause)
Encapsulates the throwable with a ArgumentException to avoid giving unnecessary information to callers.

Parameters:
cause - The thrown thing that this exception wraps.

ArgumentException

public ArgumentException(java.lang.String message,
                         java.lang.Throwable cause)
Encapsulates the throwable with a ArgumentException and some additional text. Avoids giving unnecessary information to callers.

Parameters:
message - New detail message to display instead of cause's
cause - The thrown thing that this exception wraps.

ArgumentException

public ArgumentException(java.lang.String message)
Throws a pref exception with the given detail message.

Parameters:
message - New error detail message to display

ArgumentException

public ArgumentException()
Default constructor, with null message.