Exception documentation

1.0

Introduction

Exception is a C++ class inheriting from the standard exception class and implements a stacktrace option. Exception comes as a shared library and must be installed via the GNU rule of three.

Author

Markus Mazurczak <coding@markus-mazurczak.de> Please send me any comments or Bug-reports.

Installation

Unpack the Exception_[VERSION].tar and

To list all available configure options type

To clean all build files type

To uninstall libexception type

By default, make install will install libexception to /usr/local/lib and the Exception header to /usr/local/include. To install the library and header to /home/foobar/libtest type:

this will result in /home/foobar/libtest/lib/libexception.* and /home/foobar/libtest/include/Exception

If youre done with coding and you are about to compile your program using the Exception class you have to link the exception library via

Example

File: test.cpp
 #include <iostream>
 #include <string>
 #include <Exception>

 class foo {
    public:
    void bar(void) throw(Exception) {
        std::cout << "In bar" << std::endl;
        throw Exception("Running into some serious exception");
    };
 };

 int main() {
    foo *a = new foo();
    try {
        a->bar();
    } catch(Exception &obj) {
        obj.printStacktrace();
    }
    return(1);
 }
Compile the example prog via

Generated on Sat Feb 6 20:35:37 2010 for Exception by  doxygen 1.5.8