Exception class for errors The exception comes with a text string that can be printed or logged.
More...
#include <carma/antenna/bima/SharedMemoryException.h>
|
| SharedMemoryException () |
| 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...
|
|
Exception class for errors The exception comes with a text string that can be printed or logged.
Definition at line 60 of file SharedMemoryException.h.
carma::antenna::bima::SharedMemoryException::SharedMemoryException |
( |
const std::string & |
msg, |
|
|
const char * |
filename, |
|
|
int |
lineNo |
|
) |
| |
Constructor.
- Parameters
-
msg | The message for this exception. |
filename | The source file containing the code throwing the exception. |
lineNo | The line number in the source file where the exception is created. |
carma::antenna::bima::SharedMemoryException::SharedMemoryException |
( |
const std::ostringstream & |
msg, |
|
|
const char * |
filename, |
|
|
int |
lineNo |
|
) |
| |
Constructor.
- Parameters
-
msg | The message for this exception. Make sure that the stream has been terminated with "<< ends"; |
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::antenna::bima::SharedMemoryException::SharedMemoryException |
( |
const char * |
name | ) |
|
Constructor.
- Parameters
-
name | The shared memory value name.. |
carma::antenna::bima::SharedMemoryException::SharedMemoryException |
( |
const SharedMemoryException & |
shmException | ) |
|
Copy constructor Very important for an exception, as it is actually a copy of the exception that is transported up to the catch();.
virtual carma::antenna::bima::SharedMemoryException::~SharedMemoryException |
( |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
carma::antenna::bima::SharedMemoryException::SharedMemoryException |
( |
| ) |
|
|
protected |
std::string carma::antenna::bima::SharedMemoryException::getErrorMessage |
( |
| ) |
const |
Get the full error message, including line number and file name.
- Returns
- full error message
void carma::antenna::bima::SharedMemoryException::report |
( |
| ) |
const |
Report error to standard err.
Reports error to standard error by printing the error message, filename and line number.
virtual const char* carma::antenna::bima::SharedMemoryException::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
The documentation for this class was generated from the following file: