com.github.jasminb.jsonapi.exceptions.ResourceParseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonapi-converter Show documentation
Show all versions of jsonapi-converter Show documentation
JSONAPI-Converter is a library that provides means for integrating with services using JSON API specification.
package com.github.jasminb.jsonapi.exceptions;
import com.github.jasminb.jsonapi.models.errors.Errors;
/**
* ResourceParseException implementation.
* This exception is thrown from ResourceConverter in case parsed body contains 'errors' node.
*
* @author jbegic
*/
public class ResourceParseException extends RuntimeException {
private final Errors errors;
public ResourceParseException(Errors errors) {
super(errors.toString());
this.errors = errors;
}
/**
* Returns Errors or null
* @return {@link Errors}
*/
public Errors getErrors() {
return errors;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy