[EHEALTH-10676] Avoid NPE by using more generic ErrorCode class, from which...
[EHEALTH-10676] Avoid NPE by using more generic ErrorCode class, from which both OpenNCPErrorCode and IheErrorCode extend
(cherry picked from commit 3969b547)
Closes EHEALTH-10676