laser.util.argument
Class ArgumentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by laser.util.argument.ArgumentException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArgumentFormatException, ArgumentNotRepeatableException, InvalidChoiceException

public class ArgumentException
extends java.lang.Exception

The ArgumentException signals that the user incorrectly manipulated an Argument. It should be the superclass of all exceptions thrown by the argument classes' methods.

Author:
Heather M. Conboy (laser-software@cs.umass.edu)
See Also:
Serialized Form

Constructor Summary
ArgumentException(java.lang.String msg)
          Constructs a new ArgumentException with the given message.
ArgumentException(java.lang.String msg, java.lang.Throwable cause)
          Constructs a new ArgumentException with the given message and cause.
ArgumentException(java.lang.Throwable cause)
          Constructs a new ArgumentException with the given cause.
 
Method Summary
 
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.String msg)
Constructs a new ArgumentException with the given message.

Parameters:
msg - The message to report to the user

ArgumentException

public ArgumentException(java.lang.String msg,
                         java.lang.Throwable cause)
Constructs a new ArgumentException with the given message and cause.

Parameters:
msg - The message to report to the user
cause - The cause

ArgumentException

public ArgumentException(java.lang.Throwable cause)
Constructs a new ArgumentException with the given cause.

Parameters:
cause - The cause