org.hydrateframework
Class NotLoadedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.hydrateframework.NotLoadedException
All Implemented Interfaces:
java.io.Serializable

public class NotLoadedException
extends java.lang.RuntimeException

This exception is thrown when an attempt is made to access a member of an HydrateObject that has not been populated from the database. This is different from a value that is not set - in this case a value corresponding to the 'not set value' for the attribute will be returned.

Version:
@(#)$Revision: 1.2 $
Author:
David Chamberlin
See Also:
Serialized Form

Field Summary
 java.lang.Object m_obj
           
 
Constructor Summary
NotLoadedException()
          Construct a NotPopulatedException with an empty message
NotLoadedException(java.lang.Object obj, java.lang.String s)
          Construct a NotPopulatedException that has information about the object that was not populated.
NotLoadedException(java.lang.String s)
          Construct a NotPopulatedException with the given message
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_obj

public java.lang.Object m_obj
Constructor Detail

NotLoadedException

public NotLoadedException()
Construct a NotPopulatedException with an empty message


NotLoadedException

public NotLoadedException(java.lang.String s)
Construct a NotPopulatedException with the given message

Parameters:
s - the name of the attribute that was not populated

NotLoadedException

public NotLoadedException(java.lang.Object obj,
                          java.lang.String s)
Construct a NotPopulatedException that has information about the object that was not populated.

Parameters:
obj - the object that had a not populated member
s - the name of the attribute that was not populated
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable


Copyright © 2000 The Hydrate Project. All Rights Reserved.