10Duke Scale C++ Client
Loading...
Searching...
No Matches
JWTParsingException.h
1#ifndef TENDUKE_JWT_JWTPARSINGEXCEPTION_H
2#define TENDUKE_JWT_JWTPARSINGEXCEPTION_H
3
4#include "TendukeException.h"
5
6#include <string>
7
8namespace tenduke { namespace jwt {
9
10
15{
16public:
22 JWTParsingException(const int code, const std::string &message)
23 : tenduke::TendukeException(message), code(code)
24 {}
25
30 int getCode() const {return this->code;}
31
32private:
33 const int code;
34};
35
36
37}}
38
39#endif // TENDUKE_JWT_JWTPARSINGEXCEPTION_H
Base class for exceptions thrown by 10Duke C++ clients.
Definition TendukeException.h:13
Thrown when there is a problem parsing JWT.
Definition JWTParsingException.h:15
JWTParsingException(const int code, const std::string &message)
Constructs new instance.
Definition JWTParsingException.h:22
int getCode() const
Returns the error code.
Definition JWTParsingException.h:30
Support for JSON Web Tokens.
Definition DefaultJWTParser.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7