Interface TypeEditor.ConstraintViolationCallback
- Enclosing class:
TypeEditor
Extension point that allows pluggable handling of constraint violations
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConstraintViolation(String path, List<String> nodeTypeNames, int code, String message) Invoked whenever a constraint violation is detected.
-
Method Details
-
onConstraintViolation
void onConstraintViolation(String path, List<String> nodeTypeNames, int code, String message) throws CommitFailedException Invoked whenever a constraint violation is detected.Implementors may choose to throw a
CommitFailedExceptionor to handle the error internally, for instance by logging.Implementors may not throw other exception types from this method.
- Parameters:
path- the path where the constraint violation was detectednodeTypeNames- the node type names of the nodecode- the error codemessage- the descriptive error message- Throws:
CommitFailedException- thrown when the implementation decides to stop further processing- See Also:
-