#[non_exhaustive]pub enum MdError {
InvalidFrontmatter {
detail: String,
},
FrontmatterUnclosed,
TemplateResolution {
detail: String,
},
UnsupportedStructure {
detail: String,
},
LosslessParse {
detail: String,
},
LosslessMissingAttribute {
element: &'static str,
attribute: &'static str,
},
LosslessInvalidAttribute {
element: &'static str,
attribute: &'static str,
value: String,
},
FileTooLarge {
size: u64,
limit: u64,
},
Io(Error),
Core(CoreError),
Blueprint(BlueprintError),
Foundation(FoundationError),
}Expand description
Top-level error type for smithy-md operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidFrontmatter
YAML frontmatter exists but failed to parse.
FrontmatterUnclosed
The document started a frontmatter block but never closed it.
TemplateResolution
Template inheritance could not be resolved with available providers.
UnsupportedStructure
The markdown content contains a structure this decoder cannot map.
LosslessParse
Lossless body parsing failed.
LosslessMissingAttribute
Required attribute is missing in a lossless element.
LosslessInvalidAttribute
Attribute value in a lossless element is invalid.
Fields
FileTooLarge
Input file exceeds the maximum allowed size.
Io(Error)
I/O error for file convenience APIs.
Core(CoreError)
Core-layer error propagated upward.
Blueprint(BlueprintError)
Blueprint-layer error propagated upward.
Foundation(FoundationError)
Foundation-layer error propagated upward.
Implementations§
Trait Implementations§
Source§impl Error for MdError
impl Error for MdError
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<BlueprintError> for MdError
impl From<BlueprintError> for MdError
Source§fn from(source: BlueprintError) -> Self
fn from(source: BlueprintError) -> Self
Converts to this type from the input type.
Source§impl From<FoundationError> for MdError
impl From<FoundationError> for MdError
Source§fn from(source: FoundationError) -> Self
fn from(source: FoundationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MdError
impl !RefUnwindSafe for MdError
impl Send for MdError
impl Sync for MdError
impl Unpin for MdError
impl !UnwindSafe for MdError
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