Class: BugsnagSourcemapUploader::UploadTask::ExecutionErrorResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_metadataObject (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

#exceptionObject (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

Returns:

  • (Boolean)


109
110
111
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 109

def execution_error?
  true
end

#failure?Boolean

Returns:

  • (Boolean)


105
106
107
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 105

def failure?
  true
end

#reasonObject



97
98
99
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 97

def reason
  @exception.message
end

#retryable?Boolean

Returns:

  • (Boolean)


113
114
115
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 113

def retryable?
  true
end

#status_codeObject



93
94
95
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 93

def status_code
  nil
end

#success?Boolean

Returns:

  • (Boolean)


101
102
103
# File 'lib/bugsnag_sourcemap_uploader/upload_task.rb', line 101

def success?
  false
end