codec_base64url/error.rs
1// SPDX-FileCopyrightText: 2026 ReallyMe LLC
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5use thiserror::Error;
6
7/// Error returned when base64url decoding fails.
8#[derive(Debug, Error)]
9#[non_exhaustive]
10pub enum Base64UrlError {
11 /// The input was not valid base64url.
12 #[error("invalid base64url")]
13 Invalid,
14 /// Encoded text exceeded the supported resource limit.
15 #[error("base64url input too large")]
16 InputTooLarge,
17}