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.
17 lines
574 B
Rust
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),
|
|
}
|