org.mongodb.morphia.query.validation.ValidationFailure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of morphia Show documentation
Show all versions of morphia Show documentation
Java Object Document Mapper for MongoDB
The newest version!
package org.mongodb.morphia.query.validation;
/**
* Represents a validation failure.
*/
public class ValidationFailure {
private final String message;
/**
* Creates a ValidationFailure with a message
*
* @param message the reason for the failure
*/
public ValidationFailure(final String message) {
this.message = message;
}
@Override
public String toString() {
return "Validation failed: '" + message + "'";
}
}