public interface ValidationErrorsProvider
ValidationErrors.
This interface provides a single instance of ValidationErrors per transaction, e.g. Hybris Session.
Use this provider to get the ValidationErrors at any time during execution time.| Modifier and Type | Method and Description |
|---|---|
void |
collectValidationErrors(ValidationException e,
java.util.Optional<java.lang.String> language,
java.util.Optional<java.lang.Integer> position)
Collects the errors in the validation exception and adds to the global validation context.
|
void |
finalizeValidationErrors()
Finalizes the latest
ValidationErrors instance for this transaction. |
ValidationErrors |
getCurrentValidationErrors()
Provides the current
ValidationErrors instance for this transaction. |
ValidationErrors |
initializeValidationErrors()
Initializes a new
ValidationErrors instance for this transaction. |
ValidationErrors initializeValidationErrors()
ValidationErrors instance for this transaction.ValidationErrorsValidationErrors getCurrentValidationErrors()
ValidationErrors instance for this transaction.ValidationErrorsvoid finalizeValidationErrors()
ValidationErrors instance for this transaction.void collectValidationErrors(ValidationException e, java.util.Optional<java.lang.String> language, java.util.Optional<java.lang.Integer> position)
e - the exceptionlanguage - optional; the validated languageposition - optional; the position in which the object value in the collectionCopyright © 2018 SAP SE. All Rights Reserved.