Openwings API Documentation (v1.1)

net.openwings.connector
Class ConnectorGeneratorExceptions

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.openwings.connector.ConnectorGeneratorExceptions
All Implemented Interfaces:
java.io.Serializable

public class ConnectorGeneratorExceptions
extends java.lang.Exception

This exception is used to collect various exceptions raised while generating a connector. This is done so that multiple exceptions can be reported without the system halting on the first exception. This allows unlimited exceptions to be raised as a single exception.

See Also:
Serialized Form

Constructor Summary
ConnectorGeneratorExceptions()
          This default constructor creates an empty collection of exceptions raised.
 
Method Summary
 void addException(java.lang.Exception exception)
          This method adds an exception to the collection of raised exceptions.
 int getExceptionCount()
          This method returns the number of exceptions in this collection
 java.lang.String getMessage()
          This method creates and returns a single string representation of how the messages of all of the exceptions within the collection would have looked if they had been allowed to be thrown up the stack.
 void printStackTrace()
          This method creates a single string representation of how the stackTraces of all of the exceptions within the collection would have looked if they had been allowed to be thrown up the stack.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectorGeneratorExceptions

public ConnectorGeneratorExceptions()
This default constructor creates an empty collection of exceptions raised.

Method Detail

addException

public void addException(java.lang.Exception exception)
This method adds an exception to the collection of raised exceptions.

Parameters:
exception - the exception to be added

getExceptionCount

public int getExceptionCount()
This method returns the number of exceptions in this collection

Returns:
the number of exceptions in this collection

getMessage

public java.lang.String getMessage()
This method creates and returns a single string representation of how the messages of all of the exceptions within the collection would have looked if they had been allowed to be thrown up the stack.

Returns:
the combined messages of all of the exceptions in the collection

printStackTrace

public void printStackTrace()
This method creates a single string representation of how the stackTraces of all of the exceptions within the collection would have looked if they had been allowed to be thrown up the stack. The result is then printed to System.err.


Openwings API Documentation (v1.1)