blackboard.platform.plugin
Class BadPackageDefException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by blackboard.platform.plugin.BadPackageDefException
All Implemented Interfaces:
java.io.Serializable

public class BadPackageDefException
extends java.lang.Exception

Class to encapsulate errors in a package manifest. The errors are collected into the warnings vector. A single package may contain several fatal errors.

See Also:
Serialized Form

Constructor Summary
BadPackageDefException()
          Default constructor.
BadPackageDefException(java.lang.String msg)
          Constructor that sets the message to display with this exception.
BadPackageDefException(java.lang.String msg, java.util.Vector warnings)
          Constructor that takes all available information about the exception
BadPackageDefException(java.util.Vector warnings)
          Constructor that sets the warnings to attach to this exception.
 
Method Summary
 java.util.Vector getWarnings()
          Returns the warnings associated with this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadPackageDefException

public BadPackageDefException()
Default constructor. No information about the package is provided.


BadPackageDefException

public BadPackageDefException(java.lang.String msg)
Constructor that sets the message to display with this exception.

Parameters:
msg - Message to display

BadPackageDefException

public BadPackageDefException(java.util.Vector warnings)
Constructor that sets the warnings to attach to this exception.

Parameters:
warnings - Vector of ValidationWarning objects.

BadPackageDefException

public BadPackageDefException(java.lang.String msg,
                              java.util.Vector warnings)
Constructor that takes all available information about the exception

Parameters:
msg - Message to display
warnings - Vector of ValidationWarning objects
Method Detail

getWarnings

public java.util.Vector getWarnings()
Returns the warnings associated with this exception. This is useful to display an enumerated list of errors associated with an extension manifest.

Returns:
Vector of ValidationWarning objects.


Copyright © 2003 Blackboard, Inc. All Rights Reserved.