For user messages including general feedback, errors, and field-specific validation errors.
| Type | Name and description |
|---|---|
void |
addError(java.lang.String error)Add a error message for the user to see. |
void |
addMessage(java.lang.String message)Add a non-error message for the user to see. |
void |
addValidationError(java.lang.String form, java.lang.String field, java.lang.String serviceName, java.lang.String message, java.lang.Throwable nested) |
void |
clearErrors() |
void |
copyMessages(MessageFacade mf) |
java.util.List<java.lang.String> |
getErrors()A freely modifiable List of error messages that will be shown to the user. |
java.lang.String |
getErrorsString()Make a single String with all error messages separated by the new-line character. |
java.util.List<java.lang.String> |
getMessages()A freely modifiable List of general (non-error) messages that will be shown to the user. |
java.lang.String |
getMessagesString()Make a single String with all messages separated by the new-line character. |
java.util.List<org.moqui.context.ValidationError> |
getValidationErrors()A freely modifiable List of ValidationError objects that will be shown to the user in the context of the fields that triggered the error. |
boolean |
hasError()See if there is are any errors. |
void |
popErrors()Remove last pushed errors from the stack and add them to current errors |
void |
pushErrors()Save current errors on a stack and clear them |
Add a error message for the user to see. NOTE: system errors not meant for the user should be thrown as exceptions instead.
error - The error message to addAdd a non-error message for the user to see.
message - The message to add.A freely modifiable List of error messages that will be shown to the user.
Make a single String with all error messages separated by the new-line character.
A freely modifiable List of general (non-error) messages that will be shown to the user.
Make a single String with all messages separated by the new-line character.
A freely modifiable List of ValidationError objects that will be shown to the user in the context of the fields that triggered the error.
See if there is are any errors. Checks both error strings and validation errors.
Remove last pushed errors from the stack and add them to current errors
Save current errors on a stack and clear them