In Policy API, RealizationErrorStateError is raised if an intent
entity gets into ERROR state during wait. Currently only error message
is included in the exception. This patch adds both error_code and
related_error_codes in the exception to make it more informative.
Change-Id: I45b7c50a50b1a69e37b79f684b324bb17496a9df