1#ifndef SOURCEMETA_CORE_JOSE_ERROR_H_
2#define SOURCEMETA_CORE_JOSE_ERROR_H_
4#ifndef SOURCEMETA_CORE_JOSE_EXPORT
5#include <sourcemeta/core/jose_export.h>
10namespace sourcemeta::core {
13#pragma warning(disable : 4251 4275)
18class SOURCEMETA_CORE_JOSE_EXPORT
JWKParseError :
public std::exception {
20 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
21 return "The input is not a valid JSON Web Key";
29 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
30 return "The input is not a valid JSON Web Key Set";
36class SOURCEMETA_CORE_JOSE_EXPORT
JWTParseError :
public std::exception {
38 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
39 return "The input is not a valid JSON Web Token";
45class SOURCEMETA_CORE_JOSE_EXPORT
JWEParseError :
public std::exception {
47 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
48 return "The input is not a valid JSON Web Encryption object";
53#pragma warning(default : 4251 4275)