org.hydrateframework
Class NotLoadedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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 |
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 |
m_obj
public java.lang.Object m_obj
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 members
- the name of the attribute that was not populated
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.