value_invention_error
Stable error · Load-time lowering and templates
Tier: stable · Kind: error · Topic: Load-time lowering and templates
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
| not exported | not exported | ValueInventionError | ValueInventionError | not exported |
Julia
Julia does not export this error.
TypeScript
TypeScript does not export this error.
Python
class ValueInventionError(EarthSciAstError)
ValueInventionError(message: str, code: str | None = None)
A value-invention build-time materialisation error. code is the
diagnostic code when the error carries one (KEY_OUT_OF_RANGE).
Rust
pub struct ValueInventionError {
pub message: String,
pub code: Option<&'static str>,
}
impl ValueInventionError { pub fn new(message: impl Into<String>) -> Self }
impl ValueInventionError { pub fn with_code(code: &'static str, message: impl Into<String>) -> Self }
A value-invention build-time materialisation error (the Rust analog of
Julia’s TreeWalkError value-invention codes).
Go
Go does not export this error.