// SPDX-License-Identifier: MIT
// Copyright (c) 2022-2025 Andriel Ferreira <https://github.com/AndrielFR>
//! This module contains the `Error` enum.
use Error as TError;
/// A specialized `Result` type for operations that can return an `Error`.
///
/// This is defined as a convenience to avoid writing out `std::result::Result`
/// with the `rust_anilist::Error` type repeatedly.
pub type Result<T> = Result;
/// Represents the various errors that can occur in the application.
///
/// This enum defines different types of errors that can be encountered,
/// such as invalid IDs and API errors.