Package com.vaadin.featurepack.server
Class CompositeErrorMessage
java.lang.Object
com.vaadin.featurepack.server.AbstractErrorMessage
com.vaadin.featurepack.server.CompositeErrorMessage
- All Implemented Interfaces:
ErrorMessage,Serializable
Vaadin 7/8 Class for combining multiple error messages together.
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.featurepack.server.AbstractErrorMessage
AbstractErrorMessage.ContentModeNested classes/interfaces inherited from interface com.vaadin.featurepack.server.ErrorMessage
ErrorMessage.ErrorLevel -
Field Summary
Fields inherited from interface com.vaadin.featurepack.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionCompositeErrorMessage(ErrorMessage... errorMessages) Constructor for CompositeErrorMessage.CompositeErrorMessage(Collection<? extends ErrorMessage> errorMessages) Constructor for CompositeErrorMessage. -
Method Summary
Methods inherited from class com.vaadin.featurepack.server.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, safeEscapeForHtml, setErrorLevel, setErrorLevel, setMessage, setMode
-
Constructor Details
-
CompositeErrorMessage
Constructor for CompositeErrorMessage.- Parameters:
errorMessages- the array of error messages that are listed together. Nulls are ignored, but at least one message is required.
-
CompositeErrorMessage
Constructor for CompositeErrorMessage.- Parameters:
errorMessages- the Collection of error messages that are listed together. At least one message is required.
-
-
Method Details
-
iterator
Gets Error Iterator.- Returns:
- the error iterator.
-
toString
Returns a comma separated list of the error messages.- Overrides:
toStringin classAbstractErrorMessage- Returns:
- String, comma separated list of error messages.
-