@Override
	public void close() throws IOException {
		FSUtilities.uncheckedClose(delegate, null);
		if (error != null) {
			errorConsumer.accept(
				"Errors encountered when reading at position %d, %d bytes faulted, replaced with 0's"
						.formatted(faultPosition, faultByteCount),
				error);
		}
	}
Creates instance.

@param delegate {@link InputStream} to wrap
@param length expected length of the stream
@param errorConsumer consumer that will accept errors, if null Msg.error() will be used
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/FaultTolerantInputStream.java