Exception: Circuitry::SnsPublishError
- Inherits:
-
StandardError
- Object
- StandardError
- Circuitry::SnsPublishError
- Defined in:
- lib/circuitry/publisher.rb
Instance Method Summary collapse
-
#initialize(topic:, message:, exception:) ⇒ SnsPublishError
constructor
A new instance of SnsPublishError.
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.}", topic_arn: topic.arn, message: } super msg.to_json end |