Exceptions
All public exceptions raised by Fhircraft, organized by component.
DefinitionNotFoundError
Path: fhircraft.exceptions.DefinitionNotFoundError
Bases: FhircraftException, FileNotFoundError
Raised when a required structure definition cannot be resolved.
Source code in fhircraft/exceptions.py
FactoryAssemblerError
Path: fhircraft.exceptions.FactoryAssemblerError
Bases: FactoryException, LookupError
Raised when the assembler encounters an error.
Source code in fhircraft/exceptions.py
FactoryBuilderError
Path: fhircraft.exceptions.FactoryBuilderError
Bases: FactoryException
Raised when a Builder operation fails.
Source code in fhircraft/exceptions.py
FactoryDefinitionIndexError
Path: fhircraft.exceptions.FactoryDefinitionIndexError
Bases: FactoryException
Raised when a DefinitionIndex navigation or construction operation fails.
Source code in fhircraft/exceptions.py
FactoryDefinitionResolutionError
Path: fhircraft.exceptions.FactoryDefinitionResolutionError
Bases: FactoryException
Raised when a SnapshotResolver or DefinitionIndex operation fails.
Source code in fhircraft/exceptions.py
FactoryException
Path: fhircraft.exceptions.FactoryException
Bases: FhircraftException
Base exception for all Factory component errors.
Source code in fhircraft/exceptions.py
FactoryTypeResolutionError
Path: fhircraft.exceptions.FactoryTypeResolutionError
Bases: FactoryException, LookupError
Raised when resolving a FHIR type fails.
Source code in fhircraft/exceptions.py
FactoryWarning
Path: fhircraft.exceptions.FactoryWarning
Bases: FhircraftWarning
Warning raised for non-critical issues encountered during factory operations.
FhirPathException
Path: fhircraft.exceptions.FhirPathException
Bases: FhircraftException
Base exception for all FHIRPath errors.
Source code in fhircraft/exceptions.py
FhirPathLexingError
Path: fhircraft.exceptions.FhirPathLexingError
Bases: FhirPathException
Exception raised for errors encountered during the lexical analysis of FHIRPath expressions.
This error is typically thrown when the FHIRPath lexer encounters invalid tokens or cannot interpret a given FHIRPath expression.
Source code in fhircraft/exceptions.py
FhirPathOperationError
Path: fhircraft.exceptions.FhirPathOperationError
Bases: FhirPathException
Exception raised when an unsupported or invalid operation is encountered during FHIRPath evaluation.
This can occur when trying to call functions that don't exist or with incompatible arguments.
Source code in fhircraft/exceptions.py
FhirPathParsingError
Path: fhircraft.exceptions.FhirPathParsingError
Bases: FhirPathException
Exception raised for errors encountered during the parsing of FHIRPath expressions.
This error is typically thrown when the FHIRPath parser encounters invalid syntax or cannot interpret a given FHIRPath expression.
Source code in fhircraft/exceptions.py
FhirPathRuntimeError
Path: fhircraft.exceptions.FhirPathRuntimeError
Bases: FhirPathException, RuntimeError
Exception raised for errors that occur during the runtime evaluation of FHIRPath expressions.
This exception is intended to signal issues encountered while processing or executing FHIRPath logic, such as invalid operations, type mismatches, or other runtime-specific problems.
Source code in fhircraft/exceptions.py
FhirPathTypeError
Path: fhircraft.exceptions.FhirPathTypeError
Bases: FhirPathException
Exception raised when there are type mismatches during FHIRPath expression evaluation.
This typically occurs when attempting incompatible operations on values of different types.
Source code in fhircraft/exceptions.py
FhirPathWarning
Path: fhircraft.exceptions.FhirPathWarning
Bases: FhircraftWarning
Warning raised for non-critical issues encountered during FHIRPath expression processing.
This warning can be used to alert users to potential problems or unexpected behavior that do not necessarily prevent the execution of FHIRPath operations.
FhirTypeError
Path: fhircraft.exceptions.FhirTypeError
Bases: FhircraftException
Raised when type checking or conversion fails.
Source code in fhircraft/exceptions.py
FhirValidationWarning
Path: fhircraft.exceptions.FhirValidationWarning
Bases: FhircraftWarning
Warning raised for non-critical issues encountered during FHIR resource validation.
FhircraftException
Path: fhircraft.exceptions.FhircraftException
Bases: Exception
Base exception for all fhircraft errors.
All exceptions in fhircraft inherit from this class, allowing users to catch any fhircraft-related error with a single except clause.
Attributes:
| Name | Type | Description |
|---|---|---|
message |
Human-readable error message |
|
component |
Optional component identifier (e.g., 'mapper', 'path', 'factory') |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Detailed error message describing what went wrong |
required |
component
|
Optional[str]
|
Optional identifier for which component raised the error |
None
|
Source code in fhircraft/exceptions.py
FhircraftWarning
Path: fhircraft.exceptions.FhircraftWarning
Bases: Warning
Base warning for all fhircraft warnings.
This can be used to signal non-critical issues or potential problems without raising an exception.
MapperDigestionError
Path: fhircraft.exceptions.MapperDigestionError
Bases: MapperException
Raised during the digestion of StructureMap definitions.
Source code in fhircraft/exceptions.py
MapperException
Path: fhircraft.exceptions.MapperException
Bases: FhircraftException
Base exception for all FHIR Mapper errors.
Source code in fhircraft/exceptions.py
MapperExecutionError
Path: fhircraft.exceptions.MapperExecutionError
MapperGroupProcessingError
Path: fhircraft.exceptions.MapperGroupProcessingError
MapperParsingError
Path: fhircraft.exceptions.MapperParsingError
Bases: MapperException
Raised when FHIR Mapping Language syntax or parsing fails.
Source code in fhircraft/exceptions.py
MapperRegistryNotFoundError
Path: fhircraft.exceptions.MapperRegistryNotFoundError
Bases: MapperException, FileNotFoundError
Raised when a required StructureMap cannot be resolved.
Source code in fhircraft/exceptions.py
MapperRuleProcessingError
Path: fhircraft.exceptions.MapperRuleProcessingError
MapperScopeError
Path: fhircraft.exceptions.MapperScopeError
Bases: MapperException
Raised when something accessing or modifying the mapping scope fails.
Source code in fhircraft/exceptions.py
MapperSourceProcessingError
Path: fhircraft.exceptions.MapperSourceProcessingError
Bases: MapperException
Raised when source/input processing fails.
Source code in fhircraft/exceptions.py
MapperTargetProcessingError
Path: fhircraft.exceptions.MapperTargetProcessingError
Bases: MapperException
Raised when target/output processing fails.
Source code in fhircraft/exceptions.py
MapperValidationError
Path: fhircraft.exceptions.MapperValidationError
Bases: MapperException
Raised when input data validation fails.
Source code in fhircraft/exceptions.py
PackageException
Path: fhircraft.exceptions.PackageException
Bases: FhircraftException
Base exception for all Package Registry errors.
Source code in fhircraft/exceptions.py
PackageNotFoundError
Path: fhircraft.exceptions.PackageNotFoundError
Bases: PackageException
Raised when a package is not found in the registry.
Source code in fhircraft/exceptions.py
PackageResolutionError
Path: fhircraft.exceptions.PackageResolutionError
Bases: PackageException
Raised when package resolution or loading fails.
Source code in fhircraft/exceptions.py
PackageValidationError
Path: fhircraft.exceptions.PackageValidationError
Bases: PackageException
Raised when package validation fails.