#include <Exception.h>
Public Member Functions | |
CodeLocation () | |
Ctor. | |
CodeLocation (const std::string &file_r, const std::string &func_r, unsigned line_r) | |
Ctor. | |
std::string | asString () const |
Location as string. | |
Private Attributes | |
std::string | _file |
std::string | _func |
unsigned | _line |
Friends | |
std::ostream & | operator<< (std::ostream &str, const CodeLocation &obj) |
Construct it using the ZYPP_EX_CODELOCATION macro.
Definition at line 32 of file Exception.h.
zypp::exception_detail::CodeLocation::CodeLocation | ( | ) | [inline] |
zypp::exception_detail::CodeLocation::CodeLocation | ( | const std::string & | file_r, | |
const std::string & | func_r, | |||
unsigned | line_r | |||
) | [inline] |
std::string zypp::exception_detail::CodeLocation::asString | ( | ) | const |
Location as string.
Definition at line 30 of file Exception.cc.
References _file, _func, _line, and zypp::str::form().
Referenced by zypp::exception_detail::operator<<().
std::ostream & operator<< | ( | std::ostream & | str, | |
const CodeLocation & | obj | |||
) | [friend] |
Stream output
Definition at line 38 of file Exception.cc.
std::string zypp::exception_detail::CodeLocation::_file [private] |
std::string zypp::exception_detail::CodeLocation::_func [private] |
unsigned zypp::exception_detail::CodeLocation::_line [private] |