Enum leo_errors::errors::flattener::flattener_errors::FlattenError
source · pub enum FlattenError {
Formatted(Formatted),
Backtraced(Backtraced),
}Expand description
CliError enum that represents all the errors for the leo-lang crate.
Variants
Formatted(Formatted)
Backtraced(Backtraced)
Implementations
sourceimpl FlattenError
impl FlattenError
sourcepub fn binary_overflow(
left: impl Display,
op: impl Display,
right: impl Display,
right_type: impl Display,
span: Span
) -> Self
pub fn binary_overflow(
left: impl Display,
op: impl Display,
right: impl Display,
right_type: impl Display,
span: Span
) -> Self
For when a constant operation would cause an overflow.
sourcepub fn unary_overflow(left: impl Display, op: impl Display, span: Span) -> Self
pub fn unary_overflow(left: impl Display, op: impl Display, span: Span) -> Self
For when a constant operation would cause an overflow.
sourcepub fn loop_has_neg_value(value: impl Display, span: Span) -> Self
pub fn loop_has_neg_value(value: impl Display, span: Span) -> Self
For when a loop uses a negative value.
pub fn num_exit_codes() -> i32
Trait Implementations
sourceimpl Clone for FlattenError
impl Clone for FlattenError
sourcefn clone(&self) -> FlattenError
fn clone(&self) -> FlattenError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FlattenError
impl Debug for FlattenError
sourceimpl Display for FlattenError
impl Display for FlattenError
sourceimpl Error for FlattenError
impl Error for FlattenError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Backtraced> for FlattenError
impl From<Backtraced> for FlattenError
sourcefn from(source: Backtraced) -> Self
fn from(source: Backtraced) -> Self
Converts to this type from the input type.
sourceimpl From<FlattenError> for LeoError
impl From<FlattenError> for LeoError
sourcefn from(source: FlattenError) -> Self
fn from(source: FlattenError) -> Self
Converts to this type from the input type.
sourceimpl From<Formatted> for FlattenError
impl From<Formatted> for FlattenError
sourceimpl LeoMessageCode for FlattenError
impl LeoMessageCode for FlattenError
Implements the trait for LeoError Codes.
sourcefn error_code(&self) -> String
fn error_code(&self) -> String
Returns the prefixed error identifier.
sourcefn warning_code(&self) -> String
fn warning_code(&self) -> String
Returns the prefixed warning identifier.
sourcefn message_type() -> String
fn message_type() -> String
Returns the message’s code type for the program.
sourcefn code_identifier() -> i8
fn code_identifier() -> i8
The LeoErrorCode which has a default code identifier of 037
(Leo upsidedown and backwards). This is to make the exit codes
unique to Leo itself. Read more
Auto Trait Implementations
impl RefUnwindSafe for FlattenError
impl Send for FlattenError
impl Sync for FlattenError
impl Unpin for FlattenError
impl UnwindSafe for FlattenError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more