|
libyui
3.0.10
|
#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.
Definition at line 213 of file YUIException.h.
| YCodeLocation::YCodeLocation | ( | const std::string & | file_r, |
| const std::string & | func_r, | ||
| int | line_r | ||
| ) | [inline] |
Constructor. Commonly called using the YUI_EXCEPTION_CODE_LOCATION macro.
Definition at line 220 of file YUIException.h.
| YCodeLocation::YCodeLocation | ( | ) | [inline] |
Default constructor.
Definition at line 231 of file YUIException.h.
| std::string YCodeLocation::asString | ( | ) | const |
Returns the location in normalized string format.
Definition at line 41 of file YUIException.cc.
| std::string YCodeLocation::file | ( | ) | const [inline] |
Returns the source file name where the exception occured.
Definition at line 238 of file YUIException.h.
| std::string YCodeLocation::func | ( | ) | const [inline] |
Returns the name of the function where the exception occured.
Definition at line 243 of file YUIException.h.
| int YCodeLocation::line | ( | ) | const [inline] |
Returns the source line number where the exception occured.
Definition at line 248 of file YUIException.h.
| std::ostream& operator<< | ( | std::ostream & | str, |
| const YCodeLocation & | obj | ||
| ) | [friend] |