org.lexevs.dao.database.service.error
Class DefaultDatabaseError

java.lang.Object
  extended by org.lexevs.dao.database.service.error.DefaultDatabaseError
All Implemented Interfaces:
DatabaseError
Direct Known Subclasses:
AbstractError

public class DefaultDatabaseError
extends java.lang.Object
implements DatabaseError

The Class DefaultDatabaseError.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from interface org.lexevs.dao.database.service.error.DatabaseError
UNKNOWN_ERROR_CODE
 
Constructor Summary
DefaultDatabaseError(java.lang.String errorCode, java.lang.Object errorObject, java.lang.Exception errorException)
          Instantiates a new default database error.
DefaultDatabaseError(java.lang.String errorCode, java.lang.Object errorObject, java.lang.String errorDescription, java.lang.Exception errorException)
           
 
Method Summary
 java.lang.String getErrorCode()
          Gets the error code.
 java.lang.String getErrorDescription()
           
 java.lang.Exception getErrorException()
          Gets the error exception.
 java.lang.String getErrorMessage()
           
 java.lang.Object getErrorObject()
          Gets the error object.
protected  java.lang.String getErrorObjectDescription()
          Gets the error object description.
 java.util.Date getErrorTime()
          Gets the error time.
 java.lang.String getUniqueErrorId()
          Gets the unique error id.
 boolean isDebug()
           
 void setDebug(boolean debug)
           
 void setErrorException(java.lang.Exception errorException)
          Sets the error exception.
 void setErrorObject(java.lang.Object errorObject)
          Sets the error object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDatabaseError

public DefaultDatabaseError(java.lang.String errorCode,
                            java.lang.Object errorObject,
                            java.lang.Exception errorException)
Instantiates a new default database error.

Parameters:
errorObject - the error object
errorException - the error exception

DefaultDatabaseError

public DefaultDatabaseError(java.lang.String errorCode,
                            java.lang.Object errorObject,
                            java.lang.String errorDescription,
                            java.lang.Exception errorException)
Method Detail

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface DatabaseError

getErrorObjectDescription

protected java.lang.String getErrorObjectDescription()
Gets the error object description.

Returns:
the error object description

getErrorDescription

public java.lang.String getErrorDescription()
Specified by:
getErrorDescription in interface DatabaseError

getUniqueErrorId

public java.lang.String getUniqueErrorId()
Gets the unique error id.

Specified by:
getUniqueErrorId in interface DatabaseError
Returns:
the unique error id

getErrorObject

public java.lang.Object getErrorObject()
Description copied from interface: DatabaseError
Gets the error object.

Specified by:
getErrorObject in interface DatabaseError
Returns:
the error object

setErrorObject

public void setErrorObject(java.lang.Object errorObject)
Sets the error object.

Parameters:
errorObject - the new error object

getErrorException

public java.lang.Exception getErrorException()
Description copied from interface: DatabaseError
Gets the error exception.

Specified by:
getErrorException in interface DatabaseError
Returns:
the error exception

setErrorException

public void setErrorException(java.lang.Exception errorException)
Sets the error exception.

Parameters:
errorException - the new error exception

getErrorTime

public java.util.Date getErrorTime()
Description copied from interface: DatabaseError
Gets the error time.

Specified by:
getErrorTime in interface DatabaseError
Returns:
the error time

getErrorCode

public java.lang.String getErrorCode()
Description copied from interface: DatabaseError
Gets the error code.

Specified by:
getErrorCode in interface DatabaseError
Returns:
the error code

isDebug

public boolean isDebug()

setDebug

public void setDebug(boolean debug)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.