A class for recording locations (in the source code) of exceptions being thrown.
Definition at line 69 of file Exception.hpp.
#include <Exception.hpp>
Public Member Functions | |
| void | dump (std::ostream &s) const |
| ExceptionLocation (const std::string &filename=std::string(), const std::string &funcName=std::string(), const unsigned long &lineNum=0) | |
| std::string | getFileName () const |
| Accessor for name of source file where exception occurred. More... | |
| std::string | getFunctionName () const |
| Accessor for name of function where exception occurred. More... | |
| unsigned long | getLineNumber () const |
| Accessor for line of source file where exception occurred. More... | |
| std::string | what () const |
| Dump to a string. More... | |
| ~ExceptionLocation () | |
Private Attributes | |
| std::string | fileName |
| Name of source file where exception occurred. More... | |
| std::string | functionName |
| Name of function where exception occurred. More... | |
| unsigned long | lineNumber |
| Line in source file where exception occurred. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const ExceptionLocation &e) |
|
inline |
Constructor for location information.
| [in] | filename | name of source file where exception occurred. |
| [in] | funcName | name of function where exception occurred. |
| [in] | lineNum | line of source file where exception occurred. |
Definition at line 78 of file Exception.hpp.
|
inline |
Destructor.
Definition at line 88 of file Exception.hpp.
| void gnsstk::ExceptionLocation::dump | ( | std::ostream & | s | ) | const |
Debug output function.
| [in,out] | s | stream to which debugging information for this class will be output. |
Definition at line 56 of file Exception.cpp.
|
inline |
Accessor for name of source file where exception occurred.
Definition at line 91 of file Exception.hpp.
|
inline |
Accessor for name of function where exception occurred.
Definition at line 94 of file Exception.hpp.
|
inline |
Accessor for line of source file where exception occurred.
Definition at line 97 of file Exception.hpp.
| string gnsstk::ExceptionLocation::what | ( | ) | const |
Dump to a string.
Definition at line 186 of file Exception.cpp.
|
friend |
Output stream operator for ExceptionLocation. This is intended just to dump all the data in the ExceptionLocation to the indicated stream.
| [in,out] | s | stream to send ExceptionLocation information to. |
| [in] | e | ExceptionLocation to "dump". |
s.
|
private |
Name of source file where exception occurred.
Definition at line 124 of file Exception.hpp.
|
private |
Name of function where exception occurred.
Definition at line 126 of file Exception.hpp.
|
private |
Line in source file where exception occurred.
Definition at line 128 of file Exception.hpp.