public interface ErrorHandler<V>
| Modifier and Type | Field and Description | 
|---|---|
static ErrorHandler | 
AUTO_CORRECT
 Handler to automatically correct a value used for configuring a node when the value is not valid. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
V | 
onError(V invalidValue,
       V nearestValidValue,
       String errorMessage)
Callback in case of a validation error 
 | 
static final ErrorHandler AUTO_CORRECT
Handler to automatically correct a value used for configuring a node when the value is not valid.
Valid values depend on the constraints of the specific field. In most cases AUTO_CORRECT will use the nearest valid value.V onError(V invalidValue, V nearestValidValue, String errorMessage)
invalidValue - Value that violated a constraint.nearestValidValue - Acceptable value for field.errorMessage - Message describing the validation error.Copyright © 2020. All rights reserved.