Fortran SFF API to data I/O streams in C++

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fapidxx::error::Exception
 Base class for exceptions. More...
 
class  fapidxx::error::FUException
 

Namespaces

 fapidxx
 
 fapidxx::error
 Error handling.
 

Macros

#define FAPIDXX_abort(M)   throw( fapidxx::error::Exception ( M , __FILE__, __LINE__ ))
 Abort and give a message. More...
 
#define FAPIDXX_assert(C, M)   FAPIDXX_Xassert( C , M , fapidxx::error::Exception )
 Check an assertion and report by throwing an exception. More...
 
#define FAPIDXX_ERROR_H_VERSION   "FAPIDXX_ERROR_H V1.0"
 
#define FAPIDXX_fuassert(C, U, M)   if (!(C)) { throw( fapidxx::error::FUException ( U , M , __FILE__, __LINE__, #C )); }
 Check an assertion and report by throwing an exception. More...
 
#define FAPIDXX_illegal   FAPIDXX_abort("illegal call!")
 
#define FAPIDXX_nonfatal_assert(F, C, M, V)   if (F) { FAPIDXX_report_assert(C,M,V) } else { FAPIDXX_assert(C,M) }
 Macro to distinguish between fatal and non fatal assertions. More...
 
#define FAPIDXX_report_assert(C, M, V)
 Check an assertion and report only. More...
 
#define FAPIDXX_Xassert(C, M, E)   if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); }
 Check an assertion and report by throwing an exception. More...
 

Detailed Description

exceptions and error handling macros (prototypes)


Author
Thomas Forbriger
Date
27/11/2010

exceptions and error handling macros (prototypes)

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


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

REVISIONS and CHANGES

  • 18/11/2010 V1.0 Thomas Forbriger copied from libtfxx.a

Definition in file error.h.