#include <YUIException.h>
Public Member Functions | |
YCodeLocation (const std::string &file_r, const std::string &func_r, int line_r) | |
YCodeLocation () | |
std::string | file () const |
std::string | func () const |
int | line () const |
std::string | asString () const |
Friends | |
std::ostream & | operator<< (std::ostream &str, const YCodeLocation &obj) |
Helper class for UI exceptions: Store FILE, FUNCTION and LINE. Construct this using the YUI_EXCEPTION_CODE_LOCATION macro.
|
inline |
Constructor. Commonly called using the YUI_EXCEPTION_CODE_LOCATION macro.
|
inline |
Default constructor.
string YCodeLocation::asString | ( | ) | const |
Returns the location in normalized string format.
|
inline |
Returns the source file name where the exception occured.
|
inline |
Returns the name of the function where the exception occured.
|
inline |
Returns the source line number where the exception occured.
|
friend |
Stream output
YCodeLocation stream output