#include <socketexception.hh>
Public Member Functions | |
Exception () | |
Exception (const char *file, int line) | |
Exception (const std::string &err, const char *file, int line) | |
void | print (std::ostream &stream) const |
const std::string & | get_error () const |
const char * | get_file () const |
int | get_line () const |
Protected Attributes | |
std::string | _error |
const char * | _file |
int | _line |
This class is the top exception class used in libsocket
Definition at line 47 of file socketexception.hh.
Network::Exception::Exception | ( | ) | [inline] |
Network::Exception::Exception | ( | const char * | file, | |
int | line | |||
) | [inline] |
Network::Exception::Exception | ( | const std::string & | err, | |
const char * | file, | |||
int | line | |||
) | [inline] |
void Network::Exception::print | ( | std::ostream & | stream | ) | const |
const std::string & Network::Exception::get_error | ( | ) | const |
Definition at line 34 of file socketexception.cc.
References _error.
00035 { 00036 return _error; 00037 }
const char * Network::Exception::get_file | ( | ) | const |
Definition at line 39 of file socketexception.cc.
References _file.
00040 { 00041 return _file; 00042 }
int Network::Exception::get_line | ( | ) | const |
Definition at line 44 of file socketexception.cc.
References _line.
00045 { 00046 return _line; 00047 }
std::string Network::Exception::_error [protected] |
Definition at line 70 of file socketexception.hh.
Referenced by Exception(), get_error(), and print().
const char* Network::Exception::_file [protected] |
int Network::Exception::_line [protected] |