public class ViolationException extends RuntimeException
Constructor and Description |
---|
ViolationException(Class<?> type,
Annotation constraint,
Object value)
Constructs a new
ViolationException with the specified component
Class and Constraint and the instance. |
ViolationException(Field field,
Annotation constraint,
Object value)
|
Modifier and Type | Method and Description |
---|---|
Annotation |
constraint()
Returns the constraint which is validated.
|
Field |
field()
Returns the field which is invalid.
|
Class<?> |
type()
Returns the class which is invalid.
|
Object |
value()
Returns the value which is validated.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ViolationException(Field field, Annotation constraint, Object value)
field
- The field which is invalid.constraint
- The constraint which is validated.value
- The field value.public ViolationException(Class<?> type, Annotation constraint, Object value)
ViolationException
with the specified component
Class
and Constraint
and the instance.type
- The class which is invalid.constraint
- The constraint which is validated.value
- The component instance.public Field field()
public Class<?> type()
public Annotation constraint()
public Object value()
Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.