org.melati.poem
Class TypeMismatchPoemException

Package class diagram package TypeMismatchPoemException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.melati.poem.PoemException
                  extended by org.melati.poem.SeriousPoemException
                      extended by org.melati.poem.AppBugPoemException
                          extended by org.melati.poem.TypeMismatchPoemException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotComparablePoemException, NullTypeMismatchPoemException

public class TypeMismatchPoemException
extends AppBugPoemException

Thrown when the type of an object isn't the one expected.

Author:
WilliamC@paneris.org
See Also:
Serialized Form

Field Summary
 PoemType type
          The type of the destination.
 Object value
          The value we are trying to assign.
 
Fields inherited from class org.melati.poem.PoemException
subException
 
Constructor Summary
TypeMismatchPoemException(Object value, PoemType type)
          Constructor.
 
Method Summary
 String getMessage()
          The detail message which may be null.
 
Methods inherited from class org.melati.poem.PoemException
getCoreMessage, initCause, innermostException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public Object value
The value we are trying to assign.


type

public PoemType type
The type of the destination.

Constructor Detail

TypeMismatchPoemException

public TypeMismatchPoemException(Object value,
                                 PoemType type)
Constructor.

Method Detail

getMessage

public String getMessage()
Description copied from class: PoemException
The detail message which may be null.

Overrides:
getMessage in class PoemException
Returns:
The detail message
See Also:
Throwable.getMessage()


Copyright © 2000-2010 PanEris. All Rights Reserved.