|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--HashEntryTypeInvalid
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.
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 |
public java.lang.Class expectedType
public java.lang.Class givenType
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |