BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.utils
Class ErrorCollectionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--weblogic.management.utils.ErrorCollectionException

public class ErrorCollectionException
extends java.lang.Exception

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.
See Also:
Serialized Form

Constructor Summary
ErrorCollectionException()
          Create a new ErrorCollectionException with no embedded exceptions.
ErrorCollectionException(java.lang.String baseMessage)
          Create a new ErrorCollectionException with no embedded exceptions.
ErrorCollectionException(java.lang.Throwable exception)
          Create a new ErrorCollectionException that contains one exception.
 
Method Summary
 void add(java.lang.Throwable exception)
          Add an exception to this ErrorCollection.
 java.lang.String getBaseMessage()
          Return base message for this exception.
 java.util.Collection getExceptions()
          Obtain a Collection which contains the exceptions embedded in this ErrorCollection.
 java.lang.String getMessage()
          Return message for all contained exceptions.
 boolean isEmpty()
          Test if any exceptions have been added to the collection
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

ErrorCollectionException

public ErrorCollectionException()
Create a new ErrorCollectionException with no embedded exceptions.

ErrorCollectionException

public ErrorCollectionException(java.lang.String baseMessage)
Create a new ErrorCollectionException with no embedded exceptions.

Parameters:
baseMessage - Description of the Parameter

ErrorCollectionException

public ErrorCollectionException(java.lang.Throwable exception)
Create a new ErrorCollectionException that contains one exception.

Parameters:
exception - The exception to be held by this ErrorCollectionException.
Method Detail

getExceptions

public java.util.Collection getExceptions()
Obtain a Collection which contains the exceptions embedded in this ErrorCollection.

Returns:
The Collection embedded in this ErrorCollection.

isEmpty

public boolean isEmpty()
Test if any exceptions have been added to the collection

Returns:
true if 0 exceptions have been added to the collection

getBaseMessage

public java.lang.String getBaseMessage()
Return base message for this exception.

Returns:
base message specified when exception was created

getMessage

public java.lang.String getMessage()
Return message for all contained exceptions.

Returns:
message containing all exceptions
Overrides:
getMessage in class java.lang.Throwable

add

public void add(java.lang.Throwable exception)
Add an exception to this ErrorCollection.

Parameters:
exception - The exception to be added to this ErrorCollection

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Throwable

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b