All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
encrypt-error.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_ENCRYPT_ERROR_HPP
23 #define NDN_ENCRYPT_ERROR_HPP
24 
25 #include "../common.hpp"
26 
27 namespace ndn {
28 
33 class EncryptError {
34 public:
35  enum ErrorCode {
36  Timeout = 1,
37  Validation = 2,
38  UnsupportedEncryptionScheme = 32,
39  InvalidEncryptedFormat = 33,
40  NoDecryptKey = 34,
41  EncryptionFailure = 35,
42  DataRetrievalFailure = 36,
43  General = 100
44  };
45 
49  typedef func_lib::function<void
50  (ErrorCode errorCode, const std::string& message)> OnError;
51 };
52 
53 }
54 
55 #endif
EncryptError holds the ErrorCode enum and OnError callback definition for errors from the encrypt lib...
Definition: encrypt-error.hpp:33
func_lib::function< void(ErrorCode errorCode, const std::string &message)> OnError
A method calls onError(errorCode, message) for an error.
Definition: encrypt-error.hpp:50