Skip to content

FHIRPath Exceptions

FHIRPath exceptions components

FHIRPathError

Path: fhircraft.fhir.path.exceptions.FHIRPathError

Bases: Exception

Exception raised for errors encountered during FHIRPath expression evaluation.

This exception is intended to signal issues specific to FHIRPath processing, such as invalid syntax, unsupported operations, or evaluation failures.

FHIRPathRuntimeError

Path: fhircraft.fhir.path.exceptions.FHIRPathRuntimeError

Bases: 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.

FhirPathLexerError

Path: fhircraft.fhir.path.exceptions.FhirPathLexerError

Bases: Exception

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.

FhirPathParserError

Path: fhircraft.fhir.path.exceptions.FhirPathParserError

Bases: Exception

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.

FhirPathWarning

Path: fhircraft.fhir.path.exceptions.FhirPathWarning

Bases: Warning

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.