obfuskator/crates/noxis-classfile/src/error.rs
loki5512344 39178420e4
structure-check: gate counts code lines, docs and comments in English
Gate ignores blank and full-line comment lines so the 250-line limit
measures code bulk, not documentation weight; docs/README.md synced.
Translate code comments to English in classfile, core config, namegen,
rename assign, constants forms. Expand Plausible word bank with
client-ecosystem terms (Module, Setting, Mixin, ...). cargo fmt clean,
check.sh green.
2026-10-09 10:31:02 +02:00

17 lines
574 B
Rust

//! Errors from class-file parsing/writing.
/// An error at the level of a single class file.
#[derive(Debug, thiserror::Error)]
pub enum ClassfileError {
#[error("не удалось разобрать классовый файл: {0}")]
Parse(String),
#[error("не удалось записать классовый файл: {0}")]
Write(String),
#[error("некорректный байткод {class}: {msg}")]
InvalidCode { class: String, msg: String },
#[error("не реализовано: {0}")]
Unimplemented(&'static str),
}