net.sourceforge.sqlunit.beans
Class ExceptionBean

java.lang.Object
  extended by net.sourceforge.sqlunit.beans.ExceptionBean

public class ExceptionBean
extends java.lang.Object

The ExceptionBean bean models an exception specified in a result.

Version:
$Revision: 1.4 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Constructor Summary
ExceptionBean()
          Default constructor.
 
Method Summary
 java.lang.String getErrorCode()
          Returns the error code.
 java.lang.String getErrorMessage()
          Returns the error message.
 void setErrorCode(java.lang.String errorCode)
          Sets the error code.
 void setErrorMessage(java.lang.String errorMessage)
          Sets the error message.
 org.jdom.Element toElement()
          Returns a JDOM Element representing the Exception bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionBean

public ExceptionBean()
Default constructor.

Method Detail

getErrorCode

public final java.lang.String getErrorCode()
Returns the error code.

Returns:
the error code.

setErrorCode

public final void setErrorCode(java.lang.String errorCode)
Sets the error code.

Parameters:
errorCode - the error code to set.

getErrorMessage

public final java.lang.String getErrorMessage()
Returns the error message.

Returns:
the error message.

setErrorMessage

public final void setErrorMessage(java.lang.String errorMessage)
Sets the error message.

Parameters:
errorMessage - the error message to set.

toElement

public final org.jdom.Element toElement()
Returns a JDOM Element representing the Exception bean.

Returns:
a JDOM Element representing the Exception bean.