trying to replace exception-based error handling in DICOM file reading by result/error code based to improve performance in case of errors