com.metamatrix.api.exception
Class MultipleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.metamatrix.api.exception.MultipleException
All Implemented Interfaces:
java.io.Serializable

public class MultipleException
extends java.lang.Exception

Exception that represents the occurrence of multiple exceptions.

See Also:
Serialized Form

Constructor Summary
MultipleException()
          Construct a default instance of this class.
MultipleException(java.util.Collection throwables)
          Construct an instance with the set of exceptions specified.
MultipleException(java.util.Collection throwables, java.lang.String message)
          Construct an instance with the set of exceptions and error message specified.
MultipleException(java.util.Collection throwables, java.lang.String code, java.lang.String message)
          Construct an instance with the set of exceptions, and an error code and message specified.
MultipleException(java.lang.String message)
          Construct an instance with the error message specified.
MultipleException(java.lang.String code, java.lang.String message)
          Construct an instance with an error code and message specified.
 
Method Summary
 java.lang.String getCode()
          Get the code for this exception.
 java.util.List getExceptions()
          Obtain the set of exceptions that comprise this exception.
 void setCode(java.lang.String code)
          Set the code for this exception.
 void setExceptions(java.util.Collection throwables)
          Set the exceptions that comprise 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

MultipleException

public MultipleException()
Construct a default instance of this class.


MultipleException

public MultipleException(java.lang.String message)
Construct an instance with the error message specified.

Parameters:
message - The error message

MultipleException

public MultipleException(java.lang.String code,
                         java.lang.String message)
Construct an instance with an error code and message specified.

Parameters:
message - The error message
code - The error code

MultipleException

public MultipleException(java.util.Collection throwables)
Construct an instance with the set of exceptions specified.

Parameters:
throwables - the set of exceptions that is to comprise this exception

MultipleException

public MultipleException(java.util.Collection throwables,
                         java.lang.String message)
Construct an instance with the set of exceptions and error message specified.

Parameters:
throwables - the set of exceptions that is to comprise this exception
message - The error message

MultipleException

public MultipleException(java.util.Collection throwables,
                         java.lang.String code,
                         java.lang.String message)
Construct an instance with the set of exceptions, and an error code and message specified.

Parameters:
throwables - the set of exceptions that is to comprise this exception
message - The error message
code - The error code
Method Detail

getCode

public java.lang.String getCode()
Get the code for this exception.

Returns:
the code value

setCode

public void setCode(java.lang.String code)
Set the code for this exception.

Parameters:
code - the new code value

getExceptions

public java.util.List getExceptions()
Obtain the set of exceptions that comprise this exception.

Returns:
the set of Throwable instances that comprise this exception.

setExceptions

public void setExceptions(java.util.Collection throwables)
Set the exceptions that comprise this exception.

Parameters:
throwables - the set of exceptions that is to comprise this exception


Copyright © 2009. All Rights Reserved.