When serializing an exception return its 'repr'. A 'repr' is a
printable representation of an object.
For example the exception: ValueError("an exception") will be returned
as the string: "ValueError('an exception',)"
Change-Id: Iac9f4624bcc4ff65e27c9ca20c6cbbe9481cf334