pub enum BlockError {
Header(HeaderError),
Body(BodyError),
BodyRootMismatch {
header_body_root: [u8; 32],
calculated: [u8; 32],
},
Definitions(DefinitionError),
Config(EmissionConfigError),
}Expand description
Errors that can be returned by DigL2Block construction/validation.
Variants§
Header(HeaderError)
Propagate header-level validation errors transparently.
Body(BodyError)
Propagate body-level errors transparently (not currently used, reserved for future checks).
BodyRootMismatch
The header’s body_root does not match the calculated body root.
Definitions(DefinitionError)
Propagate definition-level errors (e.g., invalid attester share policy).
Config(EmissionConfigError)
Propagate configuration errors.
Trait Implementations§
Source§impl Debug for BlockError
impl Debug for BlockError
Source§impl Display for BlockError
impl Display for BlockError
Source§impl Error for BlockError
impl Error for BlockError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BodyError> for BlockError
impl From<BodyError> for BlockError
Source§impl From<DefinitionError> for BlockError
impl From<DefinitionError> for BlockError
Source§fn from(source: DefinitionError) -> Self
fn from(source: DefinitionError) -> Self
Converts to this type from the input type.
Source§impl From<EmissionConfigError> for BlockError
impl From<EmissionConfigError> for BlockError
Source§fn from(source: EmissionConfigError) -> Self
fn from(source: EmissionConfigError) -> Self
Converts to this type from the input type.
Source§impl From<HeaderError> for BlockError
impl From<HeaderError> for BlockError
Source§fn from(source: HeaderError) -> Self
fn from(source: HeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockError
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnwindSafe for BlockError
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