CARMA C++
|
An exception indicating that a source could not be found in the catalog nor as solar system body. More...
#include <carma/services/SourceNotFoundException.h>
Public Member Functions | |
SourceNotFoundException (const std::string &msgstr, const char *filename, int lineNo) | |
create an SourceNotFoundException Recommended usage CARMA_EXCEPTION(SourceNotFoundException, string msg); More... | |
SourceNotFoundException (const std::ostringstream &msgstr, const char *filename, int lineNo) | |
create an SourceNotFoundException Recommended usage: CARMA_EXCEPTION(SourceNotFoundException, ostringstream msg); More... | |
SourceNotFoundException (const SourceNotFoundException &ex) | |
copy an SourceNotFoundException More... | |
![]() | |
CatalogEntryNotFoundException (const std::string &msgstr, const char *filename, int lineNo) | |
create an CatalogEntryNotFoundException Recommended usage CARMA_EXCEPTION(CatalogEntryNotFoundException, string msg); More... | |
CatalogEntryNotFoundException (const std::ostringstream &msgstr, const char *filename, int lineNo) | |
create an CatalogEntryNotFoundException Recommended usage: CARMA_EXCEPTION(CatalogEntryNotFoundException, ostringstream msg); More... | |
CatalogEntryNotFoundException (const CatalogEntryNotFoundException &ex) | |
copy an CatalogEntryNotFoundException More... | |
![]() | |
NotFoundException (const std::string &msgstr, const char *filename, int lineNo) | |
create a NotFoundException Suggested usage CARMA_EXCEPTION(NotFoundException, string msg); More... | |
NotFoundException (const std::ostringstream &msgstr, const char *filename, int lineNo) | |
create a NotFoundException Suggested usage CARMA_EXCEPTION(NotFoundException, ostringstream msg); More... | |
NotFoundException (const NotFoundException &ex) | |
create a copy of a NotFoundException More... | |
![]() | |
ErrorException (const std::string &msg, const char *filename, int lineNo) | |
Constructor. More... | |
ErrorException (const std::ostringstream &msg, const char *filename, int lineNo) | |
Constructor. More... | |
ErrorException (const ErrorException &errorException) | |
Copy constructor Very important for an exception, as it is actually a copy of the exception that is transported up to the catch();. More... | |
std::string | getErrorMessage () const |
Get the full error message, including line number and file name. More... | |
virtual ::std::string | getLogString () const |
void | log (log4cpp::Priority::PriorityLevel priority) const |
Log the exception. More... | |
ErrorException & | operator= (const ErrorException &rhs) |
void | report () const |
Report error to standard err. More... | |
virtual const char * | what () const throw () |
Get the error message; overrides BaseException & std::exception.what() More... | |
virtual | ~ErrorException () throw () |
Destructor. More... | |
![]() | |
Backtrace | getBacktrace () const |
virtual int | getLineNumber () const |
virtual ::std::string | getLogString () const |
virtual const char * | getMessage () const |
virtual const char * | getSourceFile () const |
void | logException (log4cpp::Priority::PriorityLevel priority) const |
virtual void | setMessageDirectly (const char *mesg) |
virtual void | setMessageToCopy (const char *mesg) |
virtual void | setMessageToCopy (const ::std::string &mesg) |
virtual void | setMessageToCopy (const ::std::ostringstream &oss) |
virtual | ~BaseException () throw ( ) |
Additional Inherited Members | |
![]() | |
ErrorException () | |
Default constructor. More... | |
![]() | |
BaseException (const BaseException &rhs) | |
BaseException (const char *mesg, const char *fileName, const int lineNo) | |
Constructor - creates an instance of class BaseException. More... | |
BaseException (const char *mesg, const ::std::string &fileName, const int lineNo) | |
BaseException (const ::std::string &mesg, const char *fileName, const int lineNo) | |
BaseException (const ::std::string &mesg, const ::std::string &fileName, const int lineNo) | |
BaseException (const ::std::ostringstream &oss, const char *fileName, const int lineNo) | |
BaseException (const ::std::ostringstream &oss, const ::std::string &fileName, const int lineNo) | |
BaseException & | operator= (const BaseException &rhs) |
virtual void | setLineNumber (int num) |
void | setSourceFileDirectly (const char *file) |
void | setSourceFileToCopy (const char *file) |
void | setSourceFileToCopy (const ::std::string &file) |
![]() | |
std::ostream & | operator<< (::std::ostream &os, const ::std::exception &error) |
Insert (i.e. output) the error message from any ::std::exception into an output stream. More... | |
An exception indicating that a source could not be found in the catalog nor as solar system body.
This method should be thrown by SourceCatalog.lookup().
Definition at line 27 of file SourceNotFoundException.h.
carma::services::SourceNotFoundException::SourceNotFoundException | ( | const std::string & | msgstr, |
const char * | filename, | ||
int | lineNo | ||
) |
create an SourceNotFoundException Recommended usage CARMA_EXCEPTION(SourceNotFoundException, string msg);
msgstr | an output string containing the message. |
filename | The source file containing the code throwing the exception. Can be set using the cpp macro 'FILE'. |
lineNo | The line number in the source file where the exception is created. Can be set using the cpp macro 'LINE'. |
carma::services::SourceNotFoundException::SourceNotFoundException | ( | const std::ostringstream & | msgstr, |
const char * | filename, | ||
int | lineNo | ||
) |
create an SourceNotFoundException Recommended usage: CARMA_EXCEPTION(SourceNotFoundException, ostringstream msg);
msgstr | an output string stream contining the message |
filename | The source file containing the code throwing the exception. Can be set using the cpp macro 'FILE'. |
lineNo | The line number in the source file where the exception is created. Can be set using the cpp macro 'LINE'. |
carma::services::SourceNotFoundException::SourceNotFoundException | ( | const SourceNotFoundException & | ex | ) |
copy an SourceNotFoundException