Class IllegalElementException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--IllegalElementException
All Implemented Interfaces:
java.io.Serializable

public class IllegalElementException
extends java.lang.Exception

An exception thrown in the Set class to indicate that the integer used as an argument in the class methods is not within the valid range accepted as elements in the set.

See Also:
Serialized Form

Constructor Summary
IllegalElementException()
          Default constructor for an IllegalElementException that passes a default string to the Exception class constructor.
IllegalElementException(java.lang.String message)
          Second constructor for the IllegalElementException that passes a provided string to the Exception class constructor.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalElementException

public IllegalElementException()
Default constructor for an IllegalElementException that passes a default string to the Exception class constructor.
Postcondition:
The object is created and contains the default message.

IllegalElementException

public IllegalElementException(java.lang.String message)
Second constructor for the IllegalElementException that passes a provided string to the Exception class constructor.
Parameters:
message - the message that the object is to contain
Postcondition:
The object is created and contains the provided message.