#include <vpr/Util/Error.h>
Inheritance diagram for vpr::ErrorImplPosix:


Static Public Member Functions | |
| static void | outputCurrentError (std::ostream &out, const std::string &prefix) |
| static ErrorType | getCurrentError () |
Definition at line 58 of file ErrorImplPosix.h.
| 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 }
1.5.1