Class HashEntryTypeInvalid

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

public class HashEntryTypeInvalid
extends java.lang.Exception

Class HashEntryTypeInvalid is an exception that is thrown by HashTable.enter if the type of enter's input parameter is different than the type with which the table was constructed. The exception constructor takes the two types involved -- the expected entry type and the erroneous type of the entry given to the enter method. Catchers of this exception may access the public data fields that hold references to the two types.

See Also:
Serialized Form

Field Summary
 java.lang.Class expectedType
          The type expected by HashTable.enter, based on that type having been given to the constructor of the instance upon which enter was called.
 java.lang.Class givenType
          The erroneous type sent to enter, i.e., a type not == to the expected type.
 
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
 

Field Detail

expectedType

public java.lang.Class expectedType
The type expected by HashTable.enter, based on that type having been given to the constructor of the instance upon which enter was called.

givenType

public java.lang.Class givenType
The erroneous type sent to enter, i.e., a type not == to the expected type.