Oracle Coherence for C++ API


ThrowablePofSerializer Class Reference

#include <coherence/io/pof/ThrowablePofSerializer.hpp>

Inherits Object, and PofSerializer.

List of all members.

Detailed Description

PofSerializer implementation that can serialize and deserialize an Exception to/from a POF stream.

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.

mf 2008.08.25

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.

Member Function Documentation

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

The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.