Expresso 5-6

com.jcorporate.expresso.core.dbobj
Class DBObject.FieldError

java.lang.Object
  extended bycom.jcorporate.expresso.core.dbobj.DBObject.FieldError
Enclosing class:
DBObject

public class DBObject.FieldError
extends Object

Private class that defines errors for fields.


Constructor Summary
DBObject.FieldError()
          Default Constructor
DBObject.FieldError(String fldName, String message)
          Constructor that sets all fields.
 
Method Summary
 String getErrorMessage()
          Returns the error message associated with this FieldError class.
 String getFieldName()
          Returns the fieldName that this error message belongs to.
 void setErrorMessage(String newValue)
          Sets the Error Message for this class.
 void setFieldName(String newValue)
          Sets the field name for this error class
 String toString()
          Overrides default toString() behavior. to return a friendly message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBObject.FieldError

public DBObject.FieldError()
Default Constructor


DBObject.FieldError

public DBObject.FieldError(String fldName,
                           String message)
Constructor that sets all fields.

Parameters:
fldName - The fieldName to associate with
message - The appropriate message
Method Detail

getFieldName

public String getFieldName()
Returns the fieldName that this error message belongs to.

Returns:
java.lang.String the field name

getErrorMessage

public String getErrorMessage()
Returns the error message associated with this FieldError class.

Returns:
the error message

setFieldName

public void setFieldName(String newValue)
Sets the field name for this error class

Parameters:
newValue - The new field name value

setErrorMessage

public void setErrorMessage(String newValue)
Sets the Error Message for this class.

Parameters:
newValue - the new Error message for this object

toString

public String toString()
Overrides default toString() behavior. to return a friendly message

Returns:
java.lang.String

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.