public class ValidationError
Represents a validation error
| Constructor and Description |
|---|
ValidationError(java.lang.String property,
java.lang.Object value,
java.lang.String message,
ValidationConstraint constraint)
Represents a validation error
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
specifies the invalid property
|
java.lang.Object |
component2()
specifies the invalid value
|
java.lang.String |
component3()
specifies the internationalized message
|
ValidationConstraint |
component4()
specifies the violated constraint
|
ValidationError |
copy(java.lang.String property,
java.lang.Object value,
java.lang.String message,
ValidationConstraint constraint)
Represents a validation error
|
boolean |
equals(java.lang.Object p) |
ValidationConstraint |
getConstraint()
specifies the violated constraint
|
java.lang.String |
getMessage()
specifies the internationalized message
|
java.lang.String |
getProperty()
specifies the invalid property
|
java.lang.Object |
getValue()
specifies the invalid value
|
int |
hashCode() |
java.lang.String |
toString() |
public ValidationError(@NotNull
java.lang.String property,
@Nullable
java.lang.Object value,
@NotNull
java.lang.String message,
@NotNull
ValidationConstraint constraint)
Represents a validation error
property - specifies the invalid propertyvalue - specifies the invalid valuemessage - specifies the internationalized messageconstraint - specifies the violated constraint@NotNull public java.lang.String getProperty()
specifies the invalid property
@Nullable public java.lang.Object getValue()
specifies the invalid value
@NotNull public java.lang.String getMessage()
specifies the internationalized message
@NotNull public ValidationConstraint getConstraint()
specifies the violated constraint
class ValidationConstraint@NotNull public java.lang.String component1()
specifies the invalid property
@Nullable public java.lang.Object component2()
specifies the invalid value
@NotNull public java.lang.String component3()
specifies the internationalized message
@NotNull public ValidationConstraint component4()
specifies the violated constraint
class ValidationConstraint@NotNull public ValidationError copy(@NotNull java.lang.String property, @Nullable java.lang.Object value, @NotNull java.lang.String message, @NotNull ValidationConstraint constraint)
Represents a validation error
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)