convex.core.exceptions.InvalidDataException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.exceptions;
/**
* Class representing errors encountered during data validation.
*
* In general, InvalidDataException occurs if the data format is correct, but
* the data fails to satisfy a validation invariant.
*/
@SuppressWarnings("serial")
public class InvalidDataException extends ValidationException {
private final Object data;
public InvalidDataException(String message, Object data) {
super(message);
this.data = data;
}
public Object getData() {
return data;
}
}