@Override
		public void reportError(Location location, String msg) {
			entries.add(new PcodeError(location, msg));
			super.reportError(location, msg);
		}
A p-code parser that provides programmatic access to error diagnostics.
Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/exec/SleighProgramCompiler.java