Package org.apache.wicket.validation
Class RawValidationError
- java.lang.Object
-
- org.apache.wicket.validation.RawValidationError
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.wicket.util.io.IClusterable
,IValidationError
public class RawValidationError extends java.lang.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(java.io.Serializable errorMessage)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
getErrorMessage(IErrorMessageSource messageSource)
Retrieves the error message (usually user-facing).
-
-
-
Method Detail
-
getErrorMessage
public java.io.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
-
-