All Downloads are FREE. Search and download functionalities are using the official Maven repository.

convex.core.exceptions.InvalidDataException Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy