com.vaadin.server.
Class CompositeErrorMessage
- java.lang.Object
-
- com.vaadin.server.AbstractErrorMessage
-
- com.vaadin.server.CompositeErrorMessage
-
All Implemented Interfaces:
public class CompositeErrorMessage extends AbstractErrorMessage
Class for combining multiple error messages together.
Since:
3.0
Author:
Vaadin Ltd
See Also:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.server.AbstractErrorMessage
AbstractErrorMessage.ContentMode
-
Nested classes/interfaces inherited from interface com.vaadin.server.ErrorMessage
ErrorMessage.ErrorLevel
-
-
Field Summary
-
Fields inherited from interface com.vaadin.server.ErrorMessage
CRITICAL, ERROR, INFORMATION, SYSTEMERROR, WARNING
-
-
Constructor Summary
Constructors Constructor Description CompositeErrorMessage(ErrorMessage... errorMessages)
Constructor for CompositeErrorMessage.
CompositeErrorMessage(Collection<? extends ErrorMessage> errorMessages)
Constructor for CompositeErrorMessage.
-
Method Summary
All Methods Modifier and Type Method Description Iterator<ErrorMessage>
iterator()
Gets Error Iterator.
String
toString()
Returns a comma separated list of the error messages.
-
Methods inherited from class com.vaadin.server.AbstractErrorMessage
addCause, getCauses, getErrorLevel, getErrorMessageForException, getFormattedHtmlMessage, getMessage, getMode, setErrorLevel, setMessage, setMode
-
-
-
-
Constructor Detail
-
CompositeErrorMessage
public CompositeErrorMessage(ErrorMessage... errorMessages)
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
public CompositeErrorMessage(Collection<? extends ErrorMessage> errorMessages)
Constructor for CompositeErrorMessage.
Parameters:
errorMessages
- the Collection of error messages that are listed together. At least one message is required.
-
-
Method Detail
-
iterator
public Iterator<ErrorMessage> iterator()
Gets Error Iterator.
Returns:
the error iterator.
-
toString
public String toString()
Returns a comma separated list of the error messages.
Overrides:
toString
in classAbstractErrorMessage
Returns:
String, comma separated list of error messages.
-
-