pub enum CodegenError {
InvalidFhirType {
fhir_type: String,
},
MissingField {
field: String,
},
Generation {
message: String,
},
Loader(LoaderError),
Foundation(FoundationError),
}Expand description
Errors specific to code generation.
This error type extends FoundationError with domain-specific error variants for FHIR code generation.
Variants§
InvalidFhirType
Invalid FHIR type encountered
MissingField
Missing required field in structure definition
Generation
General code generation failure
Loader(LoaderError)
Package loader error
Foundation(FoundationError)
Foundation error (covers IO, JSON, etc.)
Trait Implementations§
Source§impl Debug for CodegenError
impl Debug for CodegenError
Source§impl Display for CodegenError
impl Display for CodegenError
Source§impl Error for CodegenError
impl Error for CodegenError
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<Error> for CodegenError
impl From<Error> for CodegenError
Source§impl From<Error> for CodegenError
impl From<Error> for CodegenError
Source§impl From<FoundationError> for CodegenError
impl From<FoundationError> for CodegenError
Source§fn from(source: FoundationError) -> Self
fn from(source: FoundationError) -> Self
Converts to this type from the input type.
Source§impl From<LoaderError> for CodegenError
impl From<LoaderError> for CodegenError
Source§fn from(source: LoaderError) -> Self
fn from(source: LoaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodegenError
impl !RefUnwindSafe for CodegenError
impl Send for CodegenError
impl Sync for CodegenError
impl Unpin for CodegenError
impl UnsafeUnpin for CodegenError
impl !UnwindSafe for CodegenError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.