|
Manticore
Version 1.0
Physics of Molecular Clouds
|
Defines the Exception base class. More...


Go to the source code of this file.
Classes | |
| class | mutils::Exception |
| MathUtils exception (base) class. More... | |
Namespaces | |
| mutils | |
| MathUtils package. | |
Macros | |
| #define | MU_EXCEPTION(src, msg, ...) |
| Throws mutils::Exception using uniform messaging. More... | |
| #define | MU_EXCEPTION_ERRNO(src, msg, ...) |
Throws mutils::Exception using uniform messaging (including errno text). More... | |
| #define | MU_EXCEPTION_ERRNO_IF(cond, src, msg, ...) |
Conditionally throws mutils::Exception (including errno text). More... | |
| #define | MU_EXCEPTION_IF(cond, src, msg, ...) |
| Conditionally throws mutils::Exception. More... | |
| #define | MU_RETHROW(ex, src, msg, ...) |
| Rethrows an exception with a new message (after logging the original one). More... | |
| #define | MU_THROW(ex, src, msg, ...) |
| Throws an exception using uniform messaging. More... | |
| #define | MU_THROW_ERRNO(ex, src, msg, ...) MU_THROW(ex, src, msg ": %s", ## __VA_ARGS__, strerror(errno)) |
Throws an exception using uniform messaging (including errno text). More... | |
| #define | MU_THROW_ERRNO_IF(cond, ex, src, msg, ...) MU_THROW_IF(cond, ex, src, msg ": %s", ## __VA_ARGS__, strerror(errno)) |
Conditionally throws an exception (including errno text). More... | |
| #define | MU_THROW_IF(cond, ex, src, msg, ...) |
| Conditionally throws an exception. More... | |
Functions | |
| void | mutils::exitException (std::exception &ex, int status=EXIT_FAILURE) |
| Exits program with exception message. Exits the program (with status) after displaying the exception ex. More... | |
| void | mutils::printException (std::exception &ex) |
| Prints exception message. More... | |
Defines the Exception base class.
Author: Kevin P. Rauch <rauch@astro.umd.edu>
Definition in file Exception.h.
| #define MU_EXCEPTION | ( | src, | |
| msg, | |||
| ... | |||
| ) |
Throws mutils::Exception using uniform messaging.
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 90 of file Exception.h.
Referenced by manticore::SPIRE::init(), manticore::PACS::init(), and manticore::setKeys().
| #define MU_EXCEPTION_ERRNO | ( | src, | |
| msg, | |||
| ... | |||
| ) |
Throws mutils::Exception using uniform messaging (including errno text).
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 112 of file Exception.h.
| #define MU_EXCEPTION_ERRNO_IF | ( | cond, | |
| src, | |||
| msg, | |||
| ... | |||
| ) |
Conditionally throws mutils::Exception (including errno text).
| [in] | cond | Failure test condition. |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 124 of file Exception.h.
Referenced by main().
| #define MU_EXCEPTION_IF | ( | cond, | |
| src, | |||
| msg, | |||
| ... | |||
| ) |
Conditionally throws mutils::Exception.
| [in] | cond | Failure test condition. |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 101 of file Exception.h.
Referenced by manticore::getError(), mutils::CommandLine::getInteger(), mutils::CommandLine::getOption(), main(), mutils::CommandLine::parseLong(), mutils::CommandLine::parseShort(), and manticore::process().
| #define MU_RETHROW | ( | ex, | |
| src, | |||
| msg, | |||
| ... | |||
| ) |
Rethrows an exception with a new message (after logging the original one).
| [in] | ex | Exception object (must be lvalue). |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 44 of file Exception.h.
| #define MU_THROW | ( | ex, | |
| src, | |||
| msg, | |||
| ... | |||
| ) |
Throws an exception using uniform messaging.
| [in] | ex | Exception object (must be lvalue). |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 24 of file Exception.h.
| #define MU_THROW_ERRNO | ( | ex, | |
| src, | |||
| msg, | |||
| ... | |||
| ) | MU_THROW(ex, src, msg ": %s", ## __VA_ARGS__, strerror(errno)) |
Throws an exception using uniform messaging (including errno text).
| [in] | ex | Exception object (must be lvalue). |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 69 of file Exception.h.
| #define MU_THROW_ERRNO_IF | ( | cond, | |
| ex, | |||
| src, | |||
| msg, | |||
| ... | |||
| ) | MU_THROW_IF(cond, ex, src, msg ": %s", ## __VA_ARGS__, strerror(errno)) |
Conditionally throws an exception (including errno text).
| [in] | cond | Failure test condition. |
| [in] | ex | Exception object (must be lvalue). |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 81 of file Exception.h.
| #define MU_THROW_IF | ( | cond, | |
| ex, | |||
| src, | |||
| msg, | |||
| ... | |||
| ) |
Conditionally throws an exception.
| [in] | cond | Failure test condition. |
| [in] | ex | Exception object (must be lvalue). |
| [in] | src | Error source (function or method). |
| [in] | msg | Error message format string. |
| [in] | ... | Optional arguments to satisfy sprintf(msg, ...) call. |
Definition at line 56 of file Exception.h.
1.8.14