CTL.Types
Class Except

java.lang.Object
  extended by CTL.Measure
      extended by CTL.Types.Except
All Implemented Interfaces:
Writable

public class Except
extends Measure
implements Writable

Serialization of an exception


Field Summary
private  java.lang.String name
          Name of the exception
 
Constructor Summary
Except()
          Generate a nameless exception
Except(java.lang.String name)
          Generate an exception with a certain name
 
Method Summary
 java.lang.String name()
          Get the name of this exception
 void read(SerialIn in)
          Read an exception from a stream
 java.lang.String toString()
          Get a string representation of this object
 void write(SerialOut out)
          Write an exception to a stream
 
Methods inherited from class CTL.Measure
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Name of the exception

Constructor Detail

Except

public Except()
Generate a nameless exception


Except

public Except(java.lang.String name)
Generate an exception with a certain name

Parameters:
name - Name
Method Detail

toString

public java.lang.String toString()
Get a string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
String

name

public java.lang.String name()
Get the name of this exception

Returns:
Name

read

public void read(SerialIn in)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException,
                 java.lang.InstantiationException,
                 java.lang.IllegalAccessException,
                 java.lang.reflect.InvocationTargetException
Read an exception from a stream

Specified by:
read in interface Writable
Parameters:
in - Input stream
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

write

public void write(SerialOut out)
           throws java.io.IOException,
                  java.lang.IllegalAccessException,
                  java.lang.reflect.InvocationTargetException,
                  CTLException
Write an exception to a stream

Specified by:
write in interface Writable
Parameters:
out - Output stream
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException