0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
Hypertable::ExceptionMessagesRenderer Struct Reference

Helper class to render an exception message a la IO manipulators. More...

#include <Error.h>

Collaboration diagram for Hypertable::ExceptionMessagesRenderer:
Collaboration graph
[legend]

Public Member Functions

 ExceptionMessagesRenderer (const Exception &e, const char *sep=": ")
 
std::ostream & render (std::ostream &out) const
 Global helper function to print an Exception to a std::ostream. More...
 

Public Attributes

const Exceptionex
 
const char * separator
 

Detailed Description

Helper class to render an exception message a la IO manipulators.

When printing an Exception, this class also appends a separator. This is used for printing chained Exceptions

Definition at line 299 of file Error.h.

Constructor & Destructor Documentation

Hypertable::ExceptionMessagesRenderer::ExceptionMessagesRenderer ( const Exception e,
const char *  sep = ": " 
)
inline

Definition at line 300 of file Error.h.

Member Data Documentation

const Exception& Hypertable::ExceptionMessagesRenderer::ex

Definition at line 305 of file Error.h.

const char* Hypertable::ExceptionMessagesRenderer::separator

Definition at line 306 of file Error.h.


The documentation for this struct was generated from the following file: