org.dspace.content.packager
Class PackageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dspace.content.packager.PackageException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- PackageValidationException
public class PackageException
- extends Exception
This is a superclass for exceptions representing a failure when
importing or exporting a package. E.g., unacceptable package format
or contents. Implementations should throw one of the more specific
exceptions. This class is intended for declarations and catch clauses.
- Version:
- $Revision: 3705 $
- Author:
- Larry Stone
- See Also:
- Serialized Form
PackageException
public PackageException()
- Create a new exception with the given message.
- Parameters:
s - - diagnostic message.
PackageException
public PackageException(String message)
PackageException
public PackageException(Throwable cause)
PackageException
public PackageException(String message,
Throwable cause)
- Create a new exception wrapping it around another exception.
- Parameters:
e - - exception specifying the cause of this failure.
log
public void log(Logger log)
- Write details of this exception to the indicated logger.
Dump a stack trace to the log to aid in debugging.
toString
public String toString()
- Overrides:
toString in class Throwable
Copyright © 2009 The DSpace Foundation. All Rights Reserved.