pub struct CompilerErrorInfo {
pub reason: String,
pub description: Option<String>,
pub details: Vec<CompilerErrorDetailInfo>,
pub raw_message: Option<String>,
pub formatted_message: Option<String>,
}Expand description
Structured error information for the JS shim.
Fields§
§reason: String§description: Option<String>§details: Vec<CompilerErrorDetailInfo>§raw_message: Option<String>When set, the JS shim should throw an Error with this exact message instead of formatting through formatCompilerError(). This is used for simulated unknown exceptions (throwUnknownException__testonly) which in the TS compiler are plain Error objects, not CompilerErrors.
formatted_message: Option<String>Pre-formatted error message produced by Rust, matching the JS formatCompilerError() output. When present, the JS shim uses this directly instead of calling formatCompilerError() on the JS side.
Trait Implementations§
Source§impl Clone for CompilerErrorInfo
impl Clone for CompilerErrorInfo
Source§fn clone(&self) -> CompilerErrorInfo
fn clone(&self) -> CompilerErrorInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilerErrorInfo
impl Debug for CompilerErrorInfo
Auto Trait Implementations§
impl Freeze for CompilerErrorInfo
impl RefUnwindSafe for CompilerErrorInfo
impl Send for CompilerErrorInfo
impl Sync for CompilerErrorInfo
impl Unpin for CompilerErrorInfo
impl UnsafeUnpin for CompilerErrorInfo
impl UnwindSafe for CompilerErrorInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more