Class InvalidArgumentException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.xinapse.util.InvalidArgumentException
All Implemented Interfaces:
Serializable

public class InvalidArgumentException extends Exception
Signals that an invalid parameter has been passed to a constructor or method, and that error must be handled by the caller.

This class is used like IllegalArgumentException, except that this class is a sub-class of Exception, rather than RuntimeException and so must either be caught and handled, or declared in the throws clause of a constructor or method.

See Also:
  • Constructor Details

    • InvalidArgumentException

      public InvalidArgumentException()
      Constructs an InvalidArgumentException without a detail message.
    • InvalidArgumentException

      public InvalidArgumentException(String s)
      Constructs an InvalidArgumentException with the specified detail message. The error message string s can later be retrieved by the Throwable.getMessage() method of class Throwable.
      Parameters:
      s - the detail message.
    • InvalidArgumentException

      public InvalidArgumentException(String message, Throwable cause)
      Constructs an InvalidArgumentException with the specified cause.
      Parameters:
      message - the detail message.
      cause - the cause.