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:
  • Method Details

    • 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 invalid
      problems - the validation problems
      Returns:
      validation exception
    • createForObject

      public static ValidationException createForObject(String ocflObjectId, Collection<String> problems)
      Parameters:
      ocflObjectId - the ocfl object id that is invalid
      problems - the validation problems
      Returns:
      validation exception
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getProblems

      public Collection<String> getProblems()