Project

General

Profile

Actions

Task #2541

closed

Enhance exception throwing and fatal log with Boost Exception library

Added by Alex Afanasyev about 9 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Core
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
4.50 h

Description

In a real world NFD deployment, it is difficult to determine cause of a fatal error caused by an exception.
That either needs code modification, or running gdb with catch throw.

Boost has partial solution to the problem: Boost Exception library.
The exception is annotated with additional information, including: source name, function name, and line number of the place of the exception throwing.

This issue includes:

  • replace all throw exceptions with BOOST_THROW_EXCEPTION macros
  • in NFD main.cpp's top-level catch, print the annotated additional information into the fatal log

Related issues 1 (0 open1 closed)

Related to ndn-cxx - Task #2997: Enhance exception throwing with Boost Exception libraryClosedSpyros Mastorakis

Actions
Actions

Also available in: Atom PDF