<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Isuru,</div><div><br></div>Most likely you're trying to create a name from an invalid URI.  You can get a more meaningful error if you catch boost::exception like this:<div><br></div><div><div>#include "ns3/ndnSIM/ndn.cxx/detail/error.h"</div><div><br></div><div>...</div><div><br></div><div><div>  try</div><div>    {</div><div>      ndn::Name test("invalid-URI-name--no-initial-slash");</div><div>      </div><div>    }</div><div>  catch (boost::exception &e)</div><div>    {</div><div>      if (const std::string *error = boost::get_error_info<ndn::error::msg> (e))</div><div>        {</div><div>          std::cerr << *error << std::endl;</div><div>        }</div><div>    }</div></div><div><br></div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Dec 2, 2013, at 10:35 AM, <<a href="mailto:i.liyanage@surrey.ac.uk">i.liyanage@surrey.ac.uk</a>> <<a href="mailto:i.liyanage@surrey.ac.uk">i.liyanage@surrey.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr" fpstyle="1" aria-label="Message body" tabindex="0" style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px;">Hi,<br><br><div>Is there any particular reason to throw following exception.</div><div><span style="font-size: 12pt;"><br></span></div><div><font color="#808080">boost::exception_detail::clone_impl<ns3::ndn::error::Name><span style="font-size: 12pt;"> </span></font></div><div><font color="#808080"><br></font></div><div>Many Thanks,</div><div>Isuru</div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div><br></div></div></body></html>