#include <coherence/io/pof/ThrowablePofSerializer.hpp>
Inherits Object, and PofSerializer.
This serializer is provides a catch-all mechanism for serializing exceptions. Any deserialized exception will loose type information, and simply be represented as a PortableException. The basic detail information of the exception are retained.
PortableException and this class work asymmetricly to provide the serialization routines for exceptions.
Public Types | |
typedef spec::Handle | Handle |
ThrowablePofSerializer Handle definition. | |
typedef spec::View | View |
ThrowablePofSerializer View definition. | |
typedef spec::Holder | Holder |
ThrowablePofSerializer Holder definition. | |
Public Member Functions | |
virtual void | serialize (PofWriter::Handle hOut, Object::View v) const |
virtual Object::Holder | deserialize (PofReader::Handle hIn) const |
Static Public Member Functions | |
static void | writeThrowable (PofWriter::Handle hOut, Exception::View ve) |
Write the Exception to the specified stream. | |
Protected Member Functions | |
ThrowablePofSerializer () | |
Default constructor. |
static void writeThrowable | ( | PofWriter::Handle | hOut, | |
Exception::View | ve | |||
) | [static] |
Write the Exception to the specified stream.
hOut | the stream to write to | |
ve | the Exception to write |