org.dspace.content.packager
Class PackageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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: 3761 $
Author:
Larry Stone
See Also:
Serialized Form

Constructor Summary
PackageException()
          Create a new exception with the given message.
PackageException(String message)
           
PackageException(String message, Throwable cause)
          Create a new exception wrapping it around another exception.
PackageException(Throwable cause)
           
 
Method Summary
 void log(Logger log)
          Write details of this exception to the indicated logger.
 String 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

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.
Method Detail

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 © 2010 DuraSpace. All Rights Reserved.