Skip to main content

codec_base64/
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 base64 decoding fails.
8#[derive(Debug, Error)]
9#[non_exhaustive]
10pub enum Base64Error {
11    /// The input was not valid base64.
12    #[error("invalid base64")]
13    Invalid,
14    /// Encoded text exceeded the supported resource limit.
15    #[error("base64 input too large")]
16    InputTooLarge,
17}