|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.dspace.content.packager.PackageException
public class PackageException
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.
| Constructor Summary | |
|---|---|
PackageException()
Create a new exception with no message. |
|
PackageException(String message)
Create a new exception with the given message. |
|
PackageException(String message,
Throwable cause)
Create a new exception wrapping it around another exception. |
|
PackageException(Throwable cause)
Create a new exception wrapping the given underlying cause. |
|
| Method Summary | |
|---|---|
void |
log(org.apache.log4j.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 |
|---|
public PackageException()
public PackageException(String message)
message - - message text.public PackageException(Throwable cause)
cause - - exception specifying the cause of this failure.
public PackageException(String message,
Throwable cause)
message - - message text.cause - - exception specifying the cause of this failure.| Method Detail |
|---|
public void log(org.apache.log4j.Logger log)
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||