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

com.lotaris.jee.validation.ApiErrorsException Maven / Gradle / Ivy

Go to download

This library offers components that facilitate validation of arbitrary objects and how they are serialized towards a client. It focuses on the wiring of the proposed patterns and does not contain any concrete validator implementations.

There is a newer version: 0.5.2
Show newest version
package com.lotaris.jee.validation;



/**
 * Thrown to indicate that API-related errors occurred, typically during validation. This exception
 * is automatically mapped to an HTTP 422 Unprocessable Entity API response.
 *
 * @author Simon Oulevay ([email protected])
 * @see ApiErrorsExceptionMapper
 */
public class ApiErrorsException extends Exception {

	private ApiErrorResponse errorResponse;

	public ApiErrorsException(ApiErrorResponse errorResponse) {
		this.errorResponse = errorResponse;
	}

	public ApiErrorResponse getErrorResponse() {
		return errorResponse;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy