org.jlf.dataMap
Class DataMapError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.jlf.log.AppError
                          |
                          +--org.jlf.dataMap.DataMapError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DirtyReadError, RequiredAttributeNotPresent

public class DataMapError
extends AppError

This class is to be used for throwing data mapping related exceptions.

See Also:
Serialized Form

Field Summary
protected  java.lang.String attributeName
          Holds an attribute name.
protected  DataMappedObject dataMappedObject
          Holds a reference to a particular data mapped object.
 
Fields inherited from class org.jlf.log.AppError
originalThrownObject
 
Constructor Summary
DataMapError()
          Empty constructor to create an AppError with no message.
DataMapError(java.lang.String s)
          Constructor accepting a message string.
DataMapError(java.lang.String message, DataMappedObject dmo, java.lang.String attributeName)
          Constructor accepting a message, an attribute, and a data mapped object.
DataMapError(java.lang.String s, java.lang.Throwable t)
          Constructor accepting a message and a Throwable object.
DataMapError(java.lang.String s, java.lang.Throwable t, int loggingLevel)
          Constructor accepting a message, a Throwable object, and logging information.
DataMapError(java.lang.Throwable t)
          Constructor accepting a reference to a Throwable object.
 
Method Summary
 java.lang.String toString()
          Returns a String representing the AppError information.
 
Methods inherited from class org.jlf.log.AppError
getOriginalThrownObject, getStackTraceAsString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

attributeName

protected java.lang.String attributeName
Holds an attribute name.


dataMappedObject

protected DataMappedObject dataMappedObject
Holds a reference to a particular data mapped object.

Constructor Detail

DataMapError

public DataMapError()
Empty constructor to create an AppError with no message.


DataMapError

public DataMapError(java.lang.Throwable t)
Constructor accepting a reference to a Throwable object. This is normally used when using the AppError to "wrap" a caught exception.


DataMapError

public DataMapError(java.lang.String s)
Constructor accepting a message string.


DataMapError

public DataMapError(java.lang.String s,
                    java.lang.Throwable t)
Constructor accepting a message and a Throwable object. This is normally used when using the AppError to "wrap" a caught exception.


DataMapError

public DataMapError(java.lang.String s,
                    java.lang.Throwable t,
                    int loggingLevel)
Constructor accepting a message, a Throwable object, and logging information. Use this message to automatically construct the exception, generate message text and a stack trace, and log it all to the log and logging level given as input.


DataMapError

public DataMapError(java.lang.String message,
                    DataMappedObject dmo,
                    java.lang.String attributeName)
Constructor accepting a message, an attribute, and a data mapped object. Does NOT log the message to a log!

Method Detail

toString

public java.lang.String toString()
Returns a String representing the AppError information.

Overrides:
toString in class AppError