- fix some compiler warnings due to unused fields and exception params.