Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.fcrepo.storage.ocfl.exception.ValidationException
- All Implemented Interfaces:
Serializable
Indicates that an OCFL object is not a valid Fedora 6 object.
- Author:
- pwinckles
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationExceptioncreate(Collection<String> problems) static ValidationExceptioncreateForObject(String ocflObjectId, Collection<String> problems) static ValidationExceptioncreateForResource(String resourceId, Collection<String> problems) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
- Parameters:
problems- the validation problems- Returns:
- validation exception
-
createForResource
- Parameters:
resourceId- the Fedora resource id that is invalidproblems- the validation problems- Returns:
- validation exception
-
createForObject
- Parameters:
ocflObjectId- the ocfl object id that is invalidproblems- the validation problems- Returns:
- validation exception
-
getMessage
- Overrides:
getMessagein classThrowable
-
getProblems
-