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>
8#include <sourcemeta/core/error.h>
10namespace sourcemeta::core {
12SOURCEMETA_CORE_ERROR_WARNINGS_PUSH
16class SOURCEMETA_CORE_JOSE_EXPORT JWKParseError :
public Error {
18 JWKParseError() noexcept :
Error{
"The input is not a valid JSON Web Key"} {}
23class SOURCEMETA_CORE_JOSE_EXPORT JWKSParseError :
public Error {
25 JWKSParseError() noexcept
26 :
Error{
"The input is not a valid JSON Web Key Set"} {}
31class SOURCEMETA_CORE_JOSE_EXPORT JWTParseError :
public Error {
33 JWTParseError() noexcept :
Error{
"The input is not a valid JSON Web Token"} {}
38class SOURCEMETA_CORE_JOSE_EXPORT JWEParseError :
public Error {
40 JWEParseError() noexcept
41 :
Error{
"The input is not a valid JSON Web Encryption object"} {}
44SOURCEMETA_CORE_ERROR_WARNINGS_POP
Error(const StaticString message) noexcept
Construct the error given its message.
Definition error_base.h:84