Adding method to log error and throw skip exception