public class ConstraintViolation extends Object
Represents a violation of a constraint. Captures a message describing the violation. Note there may be violations of several constraints during the validation of a property. All these violations are captured as separate ConstraintViolation objects and typically rolled up as part of an overall validation result.
Copyright 2010 (C) by Martin Ganserer
| Constructor and Description |
|---|
ConstraintViolation(String message)
Creates a ConstraintViolation with the violated constraint and message describing the violation
|
public ConstraintViolation(String message)
message - IllegalArgumentException - if constraint is null or message is nullpublic String getMessage()
Copyright © 2016. All rights reserved.