Package org.dspace.content.packager
Class PackageValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.dspace.content.packager.PackageException
-
- org.dspace.content.packager.PackageValidationException
-
- All Implemented Interfaces:
Serializable
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.
- Version:
- $Revision$
- Author:
- Larry Stone
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PackageValidationException(Exception exception)Create a new exception wrapping it around another exception.PackageValidationException(String message)Create a new exception with the given message.PackageValidationException(String message, Exception exception)
-
Method Summary
-
Methods inherited from class org.dspace.content.packager.PackageException
log, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
PackageValidationException
public PackageValidationException(String message)
Create a new exception with the given message.- Parameters:
message- - diagnostic message.
-
PackageValidationException
public PackageValidationException(Exception exception)
Create a new exception wrapping it around another exception.- Parameters:
exception- - exception specifying the cause of this failure.
-
-