@ConsumerType public static interface TypeEditor.ConstraintViolationCallback
Modifier and Type | Method and Description |
---|---|
void |
onConstraintViolation(java.lang.String path,
java.util.List<java.lang.String> nodeTypeNames,
int code,
java.lang.String message)
Invoked whenever a constraint violation is detected.
|
void onConstraintViolation(java.lang.String path, java.util.List<java.lang.String> nodeTypeNames, int code, java.lang.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_VIOLATION
Copyright © 2010 - 2020 Adobe. All Rights Reserved