@Service(value=InteractiveErrorFactory.class) public class DefaultInteractiveErrorFactory extends Object implements InteractiveErrorFactory
| Constructor and Description |
|---|
DefaultInteractiveErrorFactory() |
| Modifier and Type | Method and Description |
|---|---|
InteractiveError |
createInteractiveError(String text,
org.tentackle.log.Logger.Level level,
String errorCode,
org.tentackle.validate.ValidationResult validationResult,
Object uiComponent)
Creates an interactive error explicitly.
|
InteractiveError |
createInteractiveError(TreeSet<org.tentackle.validate.ValidationMapper> mappers,
org.tentackle.bind.Binder binder,
org.tentackle.validate.ValidationResult validationResult)
Creates an interactive error from a validation result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstancepublic InteractiveError createInteractiveError(TreeSet<org.tentackle.validate.ValidationMapper> mappers, org.tentackle.bind.Binder binder, org.tentackle.validate.ValidationResult validationResult)
InteractiveErrorFactorycreateInteractiveError in interface InteractiveErrorFactorymappers - optional mappers to map the validation path to a binding pathbinder - the bindervalidationResult - the validation resultpublic InteractiveError createInteractiveError(String text, org.tentackle.log.Logger.Level level, String errorCode, org.tentackle.validate.ValidationResult validationResult, Object uiComponent)
InteractiveErrorFactorycreateInteractiveError in interface InteractiveErrorFactorytext - the error textlevel - the severity (usually Logger.Level.WARNING or Logger.Level.SEVERE)errorCode - the optional error codevalidationResult - the optional validation resultuiComponent - the optional UI component related to the error, null if noneTentackle - distributed, domain- and model-driven