NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::security::v2::ValidationError Class Reference

Validation error code and optional detailed error message. More...

#include <validation-error.hpp>

Public Types

enum  Code : uint32_t {
  NO_ERROR = 0, INVALID_SIGNATURE = 1, NO_SIGNATURE = 2, CANNOT_RETRIEVE_CERT = 3,
  EXPIRED_CERT = 4, LOOP_DETECTED = 5, MALFORMED_CERT = 6, EXCEEDED_DEPTH_LIMIT = 7,
  INVALID_KEY_LOCATOR = 8, POLICY_ERROR = 9, IMPLEMENTATION_ERROR = 255, USER_MIN = 256
}
 Known validation error code. More...
 

Public Member Functions

 ValidationError (uint32_t code, const std::string &info="")
 Validation error, implicitly convertible from an error code and info. More...
 
uint32_t getCode () const
 
const std::string & getInfo () const
 

Detailed Description

Validation error code and optional detailed error message.

Definition at line 34 of file validation-error.hpp.

Member Enumeration Documentation

◆ Code

Known validation error code.

See also
specs/validation-error-code.rst
Enumerator
NO_ERROR 
INVALID_SIGNATURE 
NO_SIGNATURE 
CANNOT_RETRIEVE_CERT 
EXPIRED_CERT 
LOOP_DETECTED 
MALFORMED_CERT 
EXCEEDED_DEPTH_LIMIT 
INVALID_KEY_LOCATOR 
POLICY_ERROR 
IMPLEMENTATION_ERROR 
USER_MIN 

Definition at line 41 of file validation-error.hpp.

Constructor & Destructor Documentation

◆ ValidationError()

ndn::security::v2::ValidationError::ValidationError ( uint32_t  code,
const std::string &  info = "" 
)
inline

Validation error, implicitly convertible from an error code and info.

Definition at line 60 of file validation-error.hpp.

Member Function Documentation

◆ getCode()

uint32_t ndn::security::v2::ValidationError::getCode ( ) const
inline

Definition at line 67 of file validation-error.hpp.

Referenced by ndn::security::v2::operator<<().

◆ getInfo()

const std::string& ndn::security::v2::ValidationError::getInfo ( ) const
inline

Definition at line 73 of file validation-error.hpp.

Referenced by ndn::security::v2::operator<<().


The documentation for this class was generated from the following file: