logging the error before throwing, and adding e.getMessage() to the custom message