Class ProfileValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- uk.org.esciencelab.researchobjectservice.validation.ProfileValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProfileValidationException extends java.lang.RuntimeException
An exception that wraps ValidationException, adding a method to generate a Jackson JsonNode object detailing the error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProfileValidationException(org.everit.json.schema.ValidationException e, ResearchObjectProfile profile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
toJsonNode()
Create a (Jackson) JSON object containing details of the validation error.
-
-
-
Constructor Detail
-
ProfileValidationException
public ProfileValidationException(org.everit.json.schema.ValidationException e, ResearchObjectProfile profile)
- Parameters:
e
- The original ValidationException thrown by the JSON schema validator.profile
- The profile that was violated.
-
-