vpr::ErrorImplPosix Class Reference

POSIX Implementation of cross-platform error reporting class. More...

#include <vpr/Util/Error.h>

Inheritance diagram for vpr::ErrorImplPosix:

Inheritance graph
[legend]
Collaboration diagram for vpr::ErrorImplPosix:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static void outputCurrentError (std::ostream &out, const std::string &prefix)
static ErrorType getCurrentError ()

Detailed Description

POSIX Implementation of cross-platform error reporting class.

Definition at line 58 of file ErrorImplPosix.h.


Member Function Documentation

void vpr::ErrorImplPosix::outputCurrentError ( std::ostream &  out,
const std::string &  prefix 
) [static]

Reimplemented from vpr::ErrorBase.

Definition at line 53 of file ErrorImplPosix.cpp.

References errno.

Referenced by vpr::SocketStreamImplNSPR::accept(), vpr::SocketImplNSPR::bind(), vpr::SocketImplNSPR::connect(), vpr::InetAddrNSPR::getHostname(), vpr::SocketImplNSPR::getOption(), vpr::SocketStreamImplNSPR::listen(), vpr::InetAddrNSPR::lookupAddress(), vpr::SocketImplNSPR::open(), vpr::SocketImplNSPR::read_i(), vpr::SocketImplNSPR::readn_i(), vpr::SocketDatagramImplNSPR::recvfrom(), vpr::SelectorImplNSPR::select(), vpr::SocketDatagramImplNSPR::sendto(), vpr::SocketImplNSPR::setBlocking(), and vpr::SocketImplNSPR::write_i().

00055 {
00056    const char* err_str = strerror(errno);
00057 
00058    out << "Error (POSIX): " << prefix << " (" << errno;
00059 
00060    if ( err_str != NULL )
00061    {
00062       out << ", " << err_str;
00063    }
00064 
00065    out << ")" << std::endl;
00066 }

static ErrorType vpr::ErrorImplPosix::getCurrentError (  )  [inline, static]

Reimplemented from vpr::ErrorBase.

Definition at line 64 of file ErrorImplPosix.h.

00065    {
00066       return NoError;
00067    }


The documentation for this class was generated from the following files:
Generated on Thu Jan 4 10:55:39 2007 for VR Juggler Portable Runtime by  doxygen 1.5.1