SERIAL++ library: simple serial port access
|
error handling code for serial port access (prototypes) More...
Go to the source code of this file.
Classes | |
class | serialport::Exception |
Base class for exceptions. More... | |
Namespaces | |
serialport | |
Root namespace of library. | |
Macros | |
#define | TF_ERROR_H_VERSION "TF_ERROR_H V1.0 " |
#define | TF_ERROR_H_CVSID "$Id$" |
#define | SERIALPORT_Xassert(C, M, E) if (!(C)) { throw( E ( M , __FILE__, __LINE__, #C )); } |
Check an assertion and report by throwing an exception. More... | |
#define | SERIALPORT_assert(C, M) SERIALPORT_Xassert( C , M , serialport::Exception ) |
Check an assertion and report by throwing an exception. More... | |
#define | SERIALPORT_abort(M) throw( serialport::Exception ( M , __FILE__, __LINE__ )) |
Abort and give a message. More... | |
#define | SERIALPORT_illegal SERIALPORT_abort("illegal call!") |
#define | SERIALPORT_report_assert(C, M, V) |
Check an assertion and report only. More... | |
#define | SERIALPORT_nonfatal_assert(F, C, M, V) if (F) { SERIALPORT_report_assert(C,M,V) } else { SERIALPORT_assert(C,M) } |
Macro to distinguish between fatal and non fatal assertions. More... | |
Functions | |
void | serialport::report_violation (const char *message, const char *file, const int &line, const char *condition) |
report violation of assertion More... | |
error handling code for serial port access (prototypes)
$Id$
error handling code for serial port access (prototypes)
Copyright (c) 2008 by Thomas Forbriger (BFO Schiltach)
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
REVISIONS and CHANGES
Definition in file error.h.