Sierra Toolkit
Version of the Day
|
Template ExTemp takes a zero argument exception and makes it into a parallel throwable and put-to-able (<<) exception. This exception may be caught with either the base class T type or the template ExTemp<T> type. More...
#include <Exception.hpp>
Public Types | |
typedef ExTemp< T > | ParallelExceptionType |
Parallel exception type. | |
typedef T | BaseExceptionType |
Base exception type. | |
Public Member Functions | |
ExTemp () | |
ExTemp (const std::string &message) | |
ExTemp (const ExTemp &x) | |
virtual | ~ExTemp () throw () |
virtual const char * | what () const throw () |
Member function what returns the exception's description. More... | |
ExTemp & | operator<< (std::ostream &(*f)(std::ostream &)) |
Member function operator<< passes the std manipilator functions to the ExTemp object. This allows the manipulators to modify the description. (Currently in a limited fashion). More... | |
template<class U > | |
ExTemp & | operator<< (const U &t) |
virtual void | throw_copy () const |
Member function copy throws a copy of the original exception. It copies the original message, sets the parallel thrown flag and throws the new exception. | |
![]() | |
virtual | ~ExParallel () |
ExParallel & | clear () |
Member function clear clears the contents of the exception. More... | |
ExParallel & | setDescription (const std::string &description) |
Member function setDescription sets the value of the exception's description. More... | |
std::string | getDescription () const |
Member function getDescription returns the exception's description. More... | |
std::ostringstream & | getDescriptionStream () |
Member function getDescriptionStream returns the stream used to assemble the description. More... | |
const std::ostringstream & | getDescriptionStream () const |
Member function getDescriptionStream returns the stream used to assemble the description. More... | |
ExParallel & | setTraceback (const std::string &traceback) |
Member function setTraceback sets the exception's traceback to the caller generating the exception. More... | |
const std::string & | getTraceback () const |
Member function getTraceback returns the exception's traceback string. More... | |
ExParallel & | setParallel (int parallel) |
Member function setParallel sets the originating processor for an exception that is being thrown in parallel. More... | |
int | getParallel () const |
Member function getParallel returns the originating processor for a parallel exception or -1 if the exception was not thrown in parallel. More... | |
bool | isParallel () const |
Member function isParallel returns true if the exception is being thrown in parallel. More... | |
ExParallel & | operator<< (std::ostream &(*f)(std::ostream &)) |
Member function operator<< passes the std manipilator functions to the ExParallel object. This allows the manipulators to modify the description. (Currently in a limited fashion). More... | |
template<class U > | |
ExParallel & | operator<< (const U &t) |
virtual void | parallel_handler () |
Member function parallel_handler is called just before a parallel exception is thrown. It is guaranteed to be called in parallel on all processors, so collective communication is allowed inside Parallel_Handler. This function might be used to copy information to all processors. The default is to do nothing. | |
Static Public Member Functions | |
static void | registerException () |
Member function registerException registers the exception with the parallel exception registry. More... | |
Additional Inherited Members | |
![]() | |
ExParallel () | |
ExParallel (const std::string &message, int parallel=-1) | |
ExParallel (const ExParallel &x) | |
Template ExTemp takes a zero argument exception and makes it into a parallel throwable and put-to-able (<<) exception. This exception may be caught with either the base class T type or the template ExTemp<T> type.
Definition at line 536 of file Exception.hpp.
|
inline |
Creates a new ExTemp instance.
Definition at line 546 of file Exception.hpp.
|
inlineexplicit |
Creates a new ExTemp instance with an initial description.
message | a std::string const reference to the initial exception description. |
Definition at line 557 of file Exception.hpp.
|
inline |
Creates a new ExTemp copy.
x | an ExTemp variable ... |
Definition at line 567 of file Exception.hpp.
|
inlinevirtual |
Destroys a ExTemp instance.
Definition at line 576 of file Exception.hpp.
|
inlinevirtual |
Member function what returns the exception's description.
Reimplemented from sierra::ExParallel.
Definition at line 585 of file Exception.hpp.
|
inline |
Member function operator<< passes the std manipilator functions to the ExTemp object. This allows the manipulators to modify the description. (Currently in a limited fashion).
Definition at line 597 of file Exception.hpp.
Member function operator<< passes any data type to the exception string class for conversion to a string.
t | a T const reference that is to be converted to a string. |
Definition at line 612 of file Exception.hpp.
|
inlinestatic |
Member function registerException registers the exception with the parallel exception registry.
Definition at line 638 of file Exception.hpp.