libfsafe: eases writing fail-safe code (C++)

about

libfsafe provides a simple exception-based assertion mechanism that can be used to realize a rudimentary design-by-contract policy.

It leverages libsex to not only throw exceptions when boolean expressions evaluate to false, but also to declutter control flow by using macros that wrap new exceptions around those thrown by substatements, creating a concise backtrace that eases reconstruction of errors.

news

changelog

2011-08-22 libfsafe-0.1.1

2011-08-18 libfsafe-0.1.0

First public release. Requires libsex-3.0.0.

dependencies

bugs

None known.

authors

repo

homepage

documentation

download

license

Copyright (C) 2011 Andreas Waidler arandes@programmers.at

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.