Namespace holding all errors from NDN.cxx API. More...
Classes | |
struct | Error |
Some error with error reporting engine. More... | |
struct | Exclude |
An error with Exclude. More... | |
struct | Keychain |
An error with security::Keychain. More... | |
struct | KeyLocator |
An error with KeyLocator. More... | |
struct | Name |
An error with Name. More... | |
struct | StringTransform |
struct | Uri |
An error with URI processing. More... | |
Typedefs | |
typedef boost::error_info < struct tag_msg, std::string > | msg |
Free-formatted text message explaining the error. More... | |
typedef boost::error_info < struct tag_pos, int > | pos |
Report of the position of the error (error-specific meaning) More... | |
Functions | |
const std::string & | get_msg (boost::exception &e) |
Helper method to get error message from the exception. More... | |
int | get_pos (boost::exception &e) |
Helper method to get position of the error from the exception. More... | |
Namespace holding all errors from NDN.cxx API.
typedef boost::error_info<struct tag_msg, std::string> ns3::ndn::error::msg |
typedef boost::error_info<struct tag_pos, int> ns3::ndn::error::pos |
|
inline |
|
inline |
Helper method to get position of the error from the exception.
Method assumes that position is present, if not, an exception will be thrown
Definition at line 113 of file error.h.
Referenced by ns3::ndn::name::Component::fromUri().