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.Externalizable, java.io.Serializable

public class MultipleException
extends java.lang.Exception
implements java.io.Externalizable

Exception that represents the occurrence of multiple exceptions.

See Also:
Serialized Form

Constructor Summary
MultipleException()
          No-arg Constructor
MultipleException(java.util.Collection<java.lang.Throwable> 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.util.Collection throwables, java.lang.String message)
          Construct an instance with the set of exceptions and error 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 readExternal(java.io.ObjectInput in)
           
 void setCode(java.lang.String code)
          Set the code for this exception.
 void writeExternal(java.io.ObjectOutput out)
           
 
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()
No-arg Constructor


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<java.lang.Throwable> 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.

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.