[RTT2] Error code reconfiguration

Error code changes:
- Error code for overall failure
- Error code for individual failures
- Throw exception when trying to access invalid results

Bug: 65108607
Test: unit tests and integration tests
Change-Id: I72c1ba6df3c3c2092fd38ea3ab7d2de7d8574e49
3 files changed