bms-table 0.14.0

BMS (Be-Music Source) difficulty table parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error types for BMS table parsing.

use thiserror::Error;

/// Errors that can occur during BMS table parsing.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum BmsTableError {
    /// The `<meta name="bmstable">` HTML tag was not found or its `content` attribute is empty.
    #[error("bmstable meta tag not found in HTML")]
    MetaTagNotFound,
    /// A JSON deserialization error.
    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),
    /// An HTML tokenizer error (from `htmlparser`).
    #[error("HTML tokenizer error: {0}")]
    TokenizerError(String),
}