mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added decode error codes and exceptions
This commit is contained in:
parent
234411a550
commit
9e69389caf
7 changed files with 131 additions and 18 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "jwt/algorithm.hpp"
|
||||
#include "jwt/string_view.hpp"
|
||||
#include "jwt/parameters.hpp"
|
||||
#include "jwt/exceptions.hpp"
|
||||
#include "jwt/json/json.hpp"
|
||||
|
||||
// For convenience
|
||||
|
@ -237,9 +238,13 @@ public: // Exposed APIs
|
|||
return base64_encode(pprint);
|
||||
}
|
||||
|
||||
/*!
|
||||
/**
|
||||
*/
|
||||
void decode(const string_view enc_str);
|
||||
void decode(const string_view enc_str, std::error_code& ec) noexcept;
|
||||
|
||||
/**
|
||||
*/
|
||||
void decode(const string_view enc_str) throw(DecodeError);
|
||||
|
||||
/*!
|
||||
*/
|
||||
|
@ -350,8 +355,11 @@ public: // Exposed APIs
|
|||
|
||||
/**
|
||||
*/
|
||||
//TODO: what about error_code ?
|
||||
void decode(const string_view enc_str);
|
||||
void decode(const string_view enc_str, std::error_code& ec) noexcept;
|
||||
|
||||
/**
|
||||
*/
|
||||
void decode(const string_view enc_str) throw(DecodeError);
|
||||
|
||||
/**
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue