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