Fixed fatal error handing (exceptions); MethodBinder moved into a separate file

This commit is contained in:
Pavel Kirienko
2014-03-09 00:12:07 +04:00
parent d9474388b0
commit 31e47daf84
5 changed files with 54 additions and 23 deletions
@@ -7,6 +7,8 @@
#include <cstdlib>
#include <cassert>
#include <stdexcept>
#include <typeinfo>
#include <uavcan/internal/impl_constants.hpp>
namespace uavcan
{
@@ -20,7 +22,7 @@ class LazyConstructor
void failure() const
{
#if UAVCAN_EXCEPTIONS
throw std::logic_error(typeid(*this).name());
throw std::runtime_error(typeid(*this).name());
#else
assert(0);
std::abort();