Show EOL distros:
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
- Source: svn https://embedded-control-library.googlecode.com/svn/trunk/ecl_lite
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
- Source: svn https://embedded-control-library.googlecode.com/svn/tags/ecl_lite/fuerte
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: groovy-devel)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: hydro-devel)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-indigo-kinetic)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: indigo-devel)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-indigo-kinetic)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-lunar)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-melodic)
Package Summary
This library provides lean and mean error mechanisms. It includes c style error functions as well as a few useful macros. For higher level mechanisms, refer to ecl_exceptions.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-noetic)
Contents
Overview
The usual C++ means is to use exceptions, however in embedded systems, exceptions are often unavailable or are too resource-heavy. This library provides a simpler alternative, combining error flags, macros and an error handler class to provide convenient disposal of errors across multiple platforms for the ecl. It also provides simple runtime and compile time asserts and aborts.
For a general overview on how ecl handles debugging, see Debugging and Error Handling in the Ecl.
For higher level exception handling of errors, refer to ecl_exceptions.
Compiling & Linking
Include the following at the top of any translation unit:
1 #include <ecl/errors.hpp>
2
3 // The error interfaces
4 using ecl_compile_time_assert;
5 using ecl_run_time_assert;
6 using ecl_run_time_abort;
7
8 // Error type enumerations
9 using ecl::NoError;
10 using ecl::ConfigurationError;
11 using ecl::UnknownError;
12 //...
13
14 // Error Handler
15 using ecl::Error;
If outside ros, you will also need to link to ecl_errors.
Usage
Debug Modes - toggling debug/release mode functionality.
Error Handling - simple macros and error flags for error handling at the lowest level.
Assertions - run-time and cmopile-time asserts and aborts.