Class PackageValidationException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dspace.content.packager.PackageException
              extended by org.dspace.content.packager.PackageValidationException
All Implemented Interfaces:

public class PackageValidationException
extends PackageException

This represents a failure when importing or exporting a package caused by invalid unacceptable package format or contents; for example, missing files that were mentioned in the manifest, or extra files not in manifest, or lack of a manifest.

When throwing a PackageValidationException, be sure the message includes enough specific information to let the end user diagnose the problem, i.e. what files appear to be missing from the manifest or package, or the details of a checksum error on a file.

$Revision: 3761 $
Larry Stone
See Also:
Serialized Form

Constructor Summary
PackageValidationException(Exception exception)
          Create a new exception wrapping it around another exception.
PackageValidationException(String message)
          Create a new exception with the given message.
Method Summary
Methods inherited from class org.dspace.content.packager.PackageException
log, toString
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public PackageValidationException(String message)
Create a new exception with the given message.

s - - diagnostic message.


public PackageValidationException(Exception exception)
Create a new exception wrapping it around another exception.

e - - exception specifying the cause of this failure.

Copyright © 2010 DuraSpace. All Rights Reserved.