public class DefaultDatabaseError extends java.lang.Object implements DatabaseError
UNKNOWN_ERROR_CODE
Constructor and Description |
---|
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)
Instantiates a new default database error.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Gets the error code.
|
java.lang.String |
getErrorDescription()
Gets the error description.
|
java.lang.Exception |
getErrorException()
Gets the error exception.
|
java.lang.String |
getErrorMessage()
Gets the error message.
|
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()
Checks if is debug.
|
void |
setDebug(boolean debug)
Sets the debug.
|
void |
setErrorException(java.lang.Exception errorException)
Sets the error exception.
|
void |
setErrorObject(java.lang.Object errorObject)
Sets the error object.
|
public DefaultDatabaseError(java.lang.String errorCode, java.lang.Object errorObject, java.lang.Exception errorException)
errorObject
- the error objecterrorException
- the error exceptionerrorCode
- the error codepublic DefaultDatabaseError(java.lang.String errorCode, java.lang.Object errorObject, java.lang.String errorDescription, java.lang.Exception errorException)
errorCode
- the error codeerrorObject
- the error objecterrorDescription
- the error descriptionerrorException
- the error exceptionpublic java.lang.String getErrorMessage()
DatabaseError
getErrorMessage
in interface DatabaseError
protected java.lang.String getErrorObjectDescription()
public java.lang.String getErrorDescription()
DatabaseError
getErrorDescription
in interface DatabaseError
public java.lang.String getUniqueErrorId()
getUniqueErrorId
in interface DatabaseError
public java.lang.Object getErrorObject()
DatabaseError
getErrorObject
in interface DatabaseError
public void setErrorObject(java.lang.Object errorObject)
errorObject
- the new error objectpublic java.lang.Exception getErrorException()
DatabaseError
getErrorException
in interface DatabaseError
public void setErrorException(java.lang.Exception errorException)
errorException
- the new error exceptionpublic java.util.Date getErrorTime()
DatabaseError
getErrorTime
in interface DatabaseError
public java.lang.String getErrorCode()
DatabaseError
getErrorCode
in interface DatabaseError
public boolean isDebug()
public void setDebug(boolean debug)
debug
- the new debug