class Aws::Plugins::SQSMd5s::Handler

def validate_body(body, response)

def validate_body(body, response)
  calculated_md5 = md5_of_message_body(body)
  returned_md5 = response.md5_of_message_body
  if calculated_md5 != returned_md5
    error_message =  mismatch_error_message(
      'message body',
      calculated_md5,
      returned_md5,
      response)
    raise Aws::Errors::ChecksumError, error_message
  end
end