Class 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$
    Author:
    Larry Stone
    See Also:
    Serialized Form
    • Constructor Detail

      • PackageException

        public PackageException()
        Create a new exception with no message.
      • PackageException

        public PackageException​(String message)
        Create a new exception with the given message.
        Parameters:
        message - - message text.
      • PackageException

        public PackageException​(Throwable cause)
        Create a new exception wrapping the given underlying cause.
        Parameters:
        cause - - exception specifying the cause of this failure.
      • PackageException

        public PackageException​(String message,
                                Throwable cause)
        Create a new exception wrapping it around another exception.
        Parameters:
        message - - message text.
        cause - - exception specifying the cause of this failure.
    • Method Detail

      • log

        public void log​(org.apache.logging.log4j.Logger log)
        Write details of this exception to the indicated logger. Dump a stack trace to the log to aid in debugging.
        Parameters:
        log - logger