@ConsumerType public static interface TypeEditor.ConstraintViolationCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onConstraintViolation(String path,
List<String> nodeTypeNames,
int code,
String message)
Invoked whenever a constraint violation is detected.
|
void onConstraintViolation(String path, List<String> nodeTypeNames, int code, String message) throws CommitFailedException
Implementors may choose to throw a CommitFailedException or to handle the error
internally, for instance by logging.
Implementors may not throw other exception types from this method.
path - the path where the constraint violation was detectednodeTypeNames - the node type names of the nodecode - the error codemessage - the descriptive error messageCommitFailedException - thrown when the implementation decides to stop further processingTypeEditor.THROW_ON_CONSTRAINT_VIOLATION,
TypeEditor.WARN_ON_CONSTRAINT_VIOLATIONCopyright © 2010 - 2020 Adobe. All Rights Reserved