Exception: ActiveJob::QueueAdapters::ActiveElasticJobAdapter::MD5MismatchError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_job/queue_adapters/active_elastic_job_adapter.rb

Overview

Raised when calculated MD5 digest does not match the MD5 Digest of the response from Amazon SQS.

Instance Method Summary collapse

Constructor Details

#initialize(message_id) ⇒ MD5MismatchError

Returns a new instance of MD5MismatchError.



67
68
69
70
71
72
73
# File 'lib/active_job/queue_adapters/active_elastic_job_adapter.rb', line 67

def initialize(message_id)
  msg = "MD5 returned by Amazon SQS does not match the calculation " <<
    "on the original request. The message with Message ID " <<
    "#{message_id} sent to SQS might be corrupted."

  super msg
end