org.apache.empire.struts2.action
Interface ErrorInfo

All Known Implementing Classes:
ActionError, InputControl.FieldValueError

public interface ErrorInfo


Method Summary
 String getErrorMessage()
          Returns the message associated with the last error.
 String[] getErrorParams()
          Returns the parameters used to build the error text.
 ErrorType getErrorType()
          Returns the last error code.
 

Method Detail

getErrorType

ErrorType getErrorType()
Returns the last error code.

Returns:
the error code of ERR_NONE if no error has been set.

getErrorParams

String[] getErrorParams()
Returns the parameters used to build the error text.

Returns:
the error message or null if no error has been set.

getErrorMessage

String getErrorMessage()
Returns the message associated with the last error.

Returns:
the error message or an empty string if no error has been set.


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.