libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::LIBJMMCG_VER_NAMESPACE::info Namespace Reference

All of this stuff is for high-quality error reporting. More...

Classes

class  function
 Attempt to include function-call information for the function from which the exception was constructed. More...
 
class  revision
 Attempt to include revision information for the file from which the exception was constructed. More...
 

Detailed Description

All of this stuff is for high-quality error reporting.

You construct a file-scope revision object to contain and wrap the basic CVS, RCS, etc revision strings. Then when you throw an exception, it will take this revision object and dump it when "what()" is called on the exception to give you that file information to aid debugging run-time bug requests from clients of your code. You can add a function object, which takes argument objects to the exception to provide yet more information, like location in the file, function name, argument names and values, the type if the "this" object (handy in template expansions to know which template expansion has occurred if there are many different specialisations).

See also
revision
function
exception