[Ndn-interest] ndn::Transport::Error?

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Feb 12 16:49:59 PST 2015


In you application you should catch std::exception or std::runtime_error.  It will provide you more human-friendly error message in this (and other) cases.

For example:

try {
   face.processEvents();
}
catch (const std::exception& e) {
   std::cerr << “ERROR: “ << e.what(); std::endl;
}

Most likely your app cannot connect to nfd. Is it running?

—
Alex

> On Feb 12, 2015, at 4:32 PM, Lee, Jongdeog <jlee700 at illinois.edu> wrote:
> 
> Dear all,
> 
>   Does anybody know reasons of the following error message?
>   Is it related to the size of name?
> =============================================
> terminate called after throwing an instance of 'ndn::Transport::Error'
>   what():  error while connecting to the forwarder
> Aborted (core dumped)
> =============================================
> 
> Best wishes,
> Jongdeog Lee (JD)
> 
> ------------------------------------------------
> Ph.D. Student
> Department of Computer Science
> University of Illinois at Urbana-Champaign
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150212/a32ae3fd/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150212/a32ae3fd/attachment.bin>


More information about the Ndn-interest mailing list