Package org.apache.wicket.validation
Class RawValidationError
- java.lang.Object
-
- org.apache.wicket.validation.RawValidationError
-
- All Implemented Interfaces:
Serializable
,IClusterable
,IValidationError
public class RawValidationError extends Object implements IValidationError
An IValidationError implementation that just keeps a Serializable error message. Use it with a custom FeedbackPanel implementation that knows how to render such error message.- Since:
- 6.0
- See Also:
Component.error(java.io.Serializable)
,Session.error(java.io.Serializable)
,FeedbackPanel
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RawValidationError(Serializable errorMessage)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializable
getErrorMessage(IErrorMessageSource messageSource)
Retrieves the error message (usually user-facing).
-
-
-
Constructor Detail
-
RawValidationError
public RawValidationError(Serializable errorMessage)
Constructor.- Parameters:
errorMessage
- the custom error message that will be rendered by a custom FeedbackPanel
-
-
Method Detail
-
getErrorMessage
public Serializable getErrorMessage(IErrorMessageSource messageSource)
Description copied from interface:IValidationError
Retrieves the error message (usually user-facing).- Specified by:
getErrorMessage
in interfaceIValidationError
- Parameters:
messageSource
- the message source- Returns:
- the error message
-
-