Exception: Circuitry::SnsPublishError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/circuitry/publisher.rb

Instance Method Summary collapse

Constructor Details

#initialize(topic:, message:, exception:) ⇒ SnsPublishError

Returns a new instance of SnsPublishError.



10
11
12
13
14
15
16
17
# File 'lib/circuitry/publisher.rb', line 10

def initialize(topic:, message:, exception:)
  msg = {
    error: "#{exception.class}: #{exception.message}",
    topic_arn: topic.arn,
    message: message
  }
  super msg.to_json
end