Class DetailedIllegalArgumentException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DetailedIllegalArgumentException
    extends java.lang.IllegalArgumentException
    A more detailed version of IllegalArgumentException that contains information about what argument was not legal.
    Version:
    $Revision: 1.4 $
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getArgumentName()
      Return the name of the argument that was illegal
      java.lang.Object getArgumentValue()
      Return the value of the argument
      • 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
    • Field Detail

      • argumentName_

        private final java.lang.String argumentName_
      • argumentValue_

        private final java.lang.Object argumentValue_
    • Constructor Detail

      • DetailedIllegalArgumentException

        public DetailedIllegalArgumentException​(java.lang.String argumentName,
                                                java.lang.Object argumentValue,
                                                java.lang.String message)
        Create an instance
        Parameters:
        argumentName - The name of the argument that was illegal
        argumentValue - The illegal value
        message - The message to use in the exception
      • DetailedIllegalArgumentException

        public DetailedIllegalArgumentException​(java.lang.String argumentName,
                                                java.lang.Object argumentValue)
        Create an instance
        Parameters:
        argumentName - The name of the argument that was illegal
        argumentValue - The illegal value
      • DetailedIllegalArgumentException

        public DetailedIllegalArgumentException​(java.lang.String argumentName,
                                                int argumentValue,
                                                java.lang.String message)
        Create an instance
        Parameters:
        argumentName - The name of the argument that was illegal
        argumentValue - The illegal value
        message - A message
      • DetailedIllegalArgumentException

        public DetailedIllegalArgumentException​(java.lang.String argumentName,
                                                int argumentValue)
        Create an instance
        Parameters:
        argumentName - The name of the argument that was illegal
        argumentValue - The illegal value
    • Method Detail

      • getArgumentName

        public java.lang.String getArgumentName()
        Return the name of the argument that was illegal
        Returns:
        the name of the argument
      • getArgumentValue

        public java.lang.Object getArgumentValue()
        Return the value of the argument
        Returns:
        The value of the argument