embassy_github/error.rs
1// Copyright 2024-2026 Reflective Labs
2// SPDX-License-Identifier: MIT
3
4use thiserror::Error;
5
6#[derive(Debug, Error)]
7pub enum GithubError {
8 #[error("invalid identifier: {0}")]
9 InvalidIdentifier(String),
10
11 #[error("invalid request: {0}")]
12 InvalidRequest(String),
13
14 #[error("network/transport error: {0}")]
15 Transport(String),
16
17 #[error("rate-limit exceeded")]
18 RateLimited,
19}