catch validation errors in legacy gw api

Change-Id: I1704b1ba5f1f29a7ddb026d6b58ac909a4b1fb7f