Slight tweak to way custom exception type is serialized by gson to prevent allow it to avoid security problems on live GAE.