AFF --- A container for numbers (array) by Friederich and Forbriger.
error.h File Reference

exceptions and error handling macros (prototypes) More...

#include <aff/lib/types.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  aff::Exception
 Base class for exceptions. More...
 
class  aff::AllocException
 Exception thrown in case of allocation error. More...
 

Namespaces

 aff
 Root namespace of library.
 

Macros

#define AFF_ERROR_H_VERSION   "AFF_ERROR_H V1.2"
 
#define AFF_Xassert(C, M, E)   if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); }
 Check an assertion and report by throwing an exception. More...
 
#define AFF_assert(C, M)   AFF_Xassert( C , M , aff::Exception )
 Check an assertion and report by throwing an exception. More...
 
#define AFF_abort(M)   throw( aff::Exception ( M , __FILE__, __LINE__ ))
 Abort and give a message. More...
 

Detailed Description

exceptions and error handling macros (prototypes)


Author
Thomas Forbriger
Date
27/11/2002

exceptions and error handling macros (prototypes)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

See also
aff::Exception
Error handling module
Note
This file is automatically included through array.h or binarray.h

Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt)

REVISIONS and CHANGES

  • 10/12/2002 V1.0 copied from libtfxx
  • 16/12/2002 V1.1 (thof)
    • now contains AllocException too
  • 28/04/2006 V1.2 (thof)
    • classes with virtual functions require the explicit definition of a virtual destructor

Definition in file error.h.