String explanation = getExpandedMessage(exception); ValidationFailure failure = ((ValidationException) exception).getValidationFailure(); String constraintReference = failure.getConstraintReferenceMessage(); String validationLocation = failure.getValidationLocationText(); String contextLocation = failure.getContextLocationText();
String explanation = getExpandedMessage(exception); ValidationFailure failure = ((ValidationException) exception).getValidationFailure(); String constraintReference = failure.getConstraintReferenceMessage(); String validationLocation = failure.getValidationLocationText(); String contextLocation = failure.getContextLocationText();
String explanation = getExpandedMessage(exception); ValidationFailure failure = ((ValidationException)xe).getValidationFailure(); String constraintReference = failure.getConstraintReferenceMessage(); if (constraintReference != null) { explanation += " (" + constraintReference + ')';
String explanation = getExpandedMessage(exception); ValidationFailure failure = ((ValidationException)xe).getValidationFailure(); String constraintReference = failure.getConstraintReferenceMessage(); if (constraintReference != null) { explanation += " (" + constraintReference + ')';