DATRW++ library: seismic data I/O with multiple formats
error.h File Reference

exception class declaration for libdatrwxx (prototypes) More...

#include <iostream>
#include <sstream>
#include <datrwxx/report.h>
#include <datrwxx/exception.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.

Macros

#define DATRW_abort(M)
 Abort and give a message. More...
 
#define DATRW_assert(C, M)   DATRW_Xassert( C , M , datrw::Exception )
 Check an assertion and report by throwing an exception. More...
 
#define DATRW_ERROR_H_VERSION   "DATRW_ERROR_H V1.8"
 
#define DATRW_illegal
 
#define DATRW_nonfatal_assert(F, C, M)   if (F) { DATRW_report_assert(C,M) } else { DATRW_assert(C,M) }
 Macro to distinguish between fatal and non fatal assertions. More...
 
#define DATRW_report_assert(C, M)
 Check an assertion and report only. More...
 
#define DATRW_warning(N, M)
 Report a warning. More...
 
#define DATRW_Xassert(C, M, E)
 Check an assertion and report by throwing an exception. More...
 

Detailed Description

exception class declaration for libdatrwxx (prototypes)


Author
Thomas Forbriger
Date
30/03/2004

exception class declaration for libdatrwxx (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

Copyright (c) 2004 by Thomas Forbriger (BFO Schiltach)

REVISIONS and CHANGES

  • 30/03/2004 V1.0 Thomas Forbriger (thof)
  • 28/04/2006 V1.1 provide explicit virtual destructor
  • 07/07/2006 V1.2 provide non-fatal behaviour
  • 06/09/2011 V1.3 introduced report_deprecated
  • 22/07/2014 V1.4 thof: report comments prior to throwing exception provide warning macro
  • 05/07/2016 V1.5 thof: operate with string containers rather than with pointer to character arrays
  • 07/07/2016 V1.6 thof: move class exception to separate header
  • 08/07/2016 V1.7 thof:
    • move report functions to separate compilation unit
    • create multiline messages
    • remove specific multiline macros
  • 11/07/2016 V1.8 thof:
    • support multi-line abort message

Definition in file error.h.