An Implementation of the Marching Cubes Algorithm  1.0
exceptionobject.hpp File Reference

This file contains the definition of a class for handling exceptions. More...

#include <iostream>
#include <string>
#include <stdexcept>
Include dependency graph for exceptionobject.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  common::ExceptionObject
 This class extends the class exception of STL, providing a customized way of dealing with exceptions. More...

Namespaces

namespace  common
 The namespace common contains the definition of macros and several utility classes, such as a class for representing 3D vectors and a class for dealing with exceptions in a customized way.

Defines

#define treat_exception(e)
 A macro to write information about an exception.

Detailed Description

This file contains the definition of a class for handling exceptions.

Author:
Marcelo Ferreira Siqueira
Universidade Federal do Rio Grande do Norte,
Departamento de Informatica e Matematica Aplicada,
marcelo at dimap (dot) ufrn (dot) br
Version:
1.0
Date:
August 2012
Attention:
This program is distributed WITHOUT ANY WARRANTY, and it may be freely redistributed under the condition that the copyright notices are not removed, and no compensation is received. Private, research, and institutional use is free. Distribution of this code as part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT WITH THE AUTHOR.

Definition in file exceptionobject.hpp.


Define Documentation

treat_exception (   e)
Value:
std::cout << "Exception: " << e.get_description() << std::endl \
            << "File: " << e.get_file() << std::endl \
            << "Line: " << e.get_line() << std::endl

A macro to write information about an exception.

Parameters:
eAn exception.

Definition at line 40 of file exceptionobject.hpp.

Referenced by mc::SurfBuilder::run().