Exception: Marlens::JiraApi::ImageUploadError
- Inherits:
-
StandardError
- Object
- StandardError
- Marlens::JiraApi::ImageUploadError
- Defined in:
- lib/marlens/jira_api/remote_image_attachment_uploader.rb
Instance Attribute Summary collapse
-
#failure ⇒ Object
readonly
Returns the value of attribute failure.
Instance Method Summary collapse
-
#initialize(failure) ⇒ ImageUploadError
constructor
A new instance of ImageUploadError.
Constructor Details
#initialize(failure) ⇒ ImageUploadError
Returns a new instance of ImageUploadError.
13 14 15 16 |
# File 'lib/marlens/jira_api/remote_image_attachment_uploader.rb', line 13 def initialize(failure) @failure = failure super("Failed to upload image #{failure.fetch(:url)}: #{failure.fetch(:error_class)}: #{failure.fetch(:error_message)}") end |
Instance Attribute Details
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
11 12 13 |
# File 'lib/marlens/jira_api/remote_image_attachment_uploader.rb', line 11 def failure @failure end |