Luis A. Garcia df73577ee2 Enhance exception translation to better handle NeutronExceptions
NeutronExceptions have a 'message' class attribute that holds the
generic error message template, e.g. "Network %(network)s not found",
unfortunately, because the names are the same, it was overshadowing the
actual exception instance 'message', e.g. "Network 1 not found", after
translation when the exception was serialized to JSON.

This patch puts the exception's actual message in a new field called
'msg' and overwrites NeutronException unicode() so that 'msg' is used
during serialization and we'll get the correct message on the REST API
response.

Fixes bug: #1212882

Change-Id: I3965bffb1c2c2eee0af440d1ecd30ccb3bb958d5
2013-09-12 18:43:15 +00:00
..
2013-08-16 10:10:30 +08:00
2013-09-08 15:58:12 +08:00
2013-07-06 15:02:43 -04:00
2013-07-06 15:02:43 -04:00
2013-08-15 22:58:14 +03:00
2013-09-08 15:58:12 +08:00
2013-09-08 15:58:12 +08:00
2013-09-08 15:58:12 +08:00
2013-07-06 15:02:43 -04:00