Class LenientErrorHandler

java.lang.Object
ca.uhn.fhir.parser.LenientErrorHandler
All Implemented Interfaces:
IParserErrorHandler

public class LenientErrorHandler extends Object implements IParserErrorHandler
The default error handler, which logs issues but does not abort parsing, with only two exceptions:

The invalidValue(ca.uhn.fhir.parser.IParserErrorHandler.IParseLocation, java.lang.String, java.lang.String) method will throw a DataFormatException by default since ignoring this type of error can lead to data loss (since invalid values are silently ignored). See setErrorOnInvalidValue(boolean) for information on this.

The extensionContainsValueAndNestedExtensions(ca.uhn.fhir.parser.IParserErrorHandler.IParseLocation) method will throw a DataFormatException by default since ignoring this type of error will allow malformed resouces to be created and result in errors when attempts to read, update or delete the resource in the future. See setErrorOnInvalidExtension(boolean) for information on this.

See Also: