Add missing __repr__ methods on ErrorEvent and UnhandledEvent

Also fix a minor coding style issue.

Change-Id: Ib366a816e5cf979eb94c7ce545d1c87c6c3984c8