All exceptions thrown by CoCoALib are of a type derived from
An object of type
CoCoA::exception contains just 2 fields: a
context (which may be empty). The intention is that the
indicates what caused the exception, while
context may indicate where
the exception was thrown from.
CoCoA::exception does not derive from
There are two constructors:
exception(mesg)specify the message but no context
exception(mesg, where)specify the message and a context
E be an object of type
message(E)gives the message inside
context(E)gives the context info inside
The class is very simple: it contains just two string data members, and two accessor functions.
Is it better to use
std::string or plain C strings?