Class: BugsnagSourcemapUploader::UploadTask::ExecutionErrorResult
- Inherits:
-
Object
- Object
- BugsnagSourcemapUploader::UploadTask::ExecutionErrorResult
- Defined in:
- lib/bugsnag_sourcemap_uploader/upload_task.rb
Overview
Represents the result of the UploadTask#upload method when an exception occurred.
Instance Attribute Summary collapse
-
#asset_metadata ⇒ Object
readonly
Returns the value of attribute asset_metadata.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
- #execution_error? ⇒ Boolean
- #failure? ⇒ Boolean
-
#initialize(asset_metadata, exception) ⇒ ExecutionErrorResult
constructor
A new instance of ExecutionErrorResult.
- #reason ⇒ Object
- #retryable? ⇒ Boolean
- #status_code ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(asset_metadata, exception) ⇒ ExecutionErrorResult
Returns a new instance of ExecutionErrorResult.
88 89 90 91 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 88 def initialize(, exception) @asset_metadata = @exception = exception end |
Instance Attribute Details
#asset_metadata ⇒ Object (readonly)
Returns the value of attribute asset_metadata.
86 87 88 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 86 def @asset_metadata end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
86 87 88 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 86 def exception @exception end |
Instance Method Details
#execution_error? ⇒ Boolean
109 110 111 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 109 def execution_error? true end |
#failure? ⇒ Boolean
105 106 107 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 105 def failure? true end |
#reason ⇒ Object
97 98 99 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 97 def reason @exception. end |
#retryable? ⇒ Boolean
113 114 115 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 113 def retryable? true end |
#status_code ⇒ Object
93 94 95 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 93 def status_code nil end |
#success? ⇒ Boolean
101 102 103 |
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 101 def success? false end |