org.objectweb.dream.protocol
Class ExceptionChunk

java.lang.Object
  extended by org.objectweb.dream.message.AbstractChunk<ExceptionChunk>
      extended by org.objectweb.dream.protocol.ExceptionChunk
All Implemented Interfaces:
Externalizable, Serializable, Recyclable

public class ExceptionChunk
extends AbstractChunk<ExceptionChunk>

General purpose chunk containing an exception.

See Also:
Serialized Form

Field Summary
static String DEFAULT_NAME
          default name of chunk of this type.
 
Constructor Summary
ExceptionChunk()
           
 
Method Summary
 Exception getException()
          Returns the exception.
 ExceptionChunk newChunk()
           
 void readExternal(ObjectInput in)
           
 void recycle()
           
 void setException(Exception e)
          Sets the exception.
 void transfertStateTo(ExceptionChunk newInstance)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.objectweb.dream.message.AbstractChunk
getReference, setReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_NAME

public static final String DEFAULT_NAME
default name of chunk of this type.

See Also:
Constant Field Values
Constructor Detail

ExceptionChunk

public ExceptionChunk()
Method Detail

getException

public Exception getException()
Returns the exception.

Returns:
the exception.

setException

public void setException(Exception e)
Sets the exception.

Parameters:
e - an exception.

newChunk

public ExceptionChunk newChunk()
Specified by:
newChunk in class AbstractChunk<ExceptionChunk>
See Also:
AbstractChunk.newChunk()

transfertStateTo

public void transfertStateTo(ExceptionChunk newInstance)
Specified by:
transfertStateTo in class AbstractChunk<ExceptionChunk>
See Also:
AbstractChunk.transfertStateTo(AbstractChunk)

recycle

public void recycle()
See Also:
Recyclable.recycle()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Throws:
IOException
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Throws:
IOException
ClassNotFoundException
See Also:
Externalizable.readExternal(java.io.ObjectInput)


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.