Exception: Escobar::Heroku::BuildRequest::MissingContextsError

Inherits:
Error
  • Object
show all
Defined in:
lib/escobar/heroku/build_request.rb

Overview

Class representing a rejected GitHub deployment

Direct Known Subclasses

PipelinePromotion::MissingContextsError

Instance Attribute Summary collapse

Attributes inherited from Error

#build_request

Class Method Summary collapse

Methods inherited from Error

#dashboard_url, new_from_build_request

Instance Attribute Details

#missing_contextsObject

Returns the value of attribute missing_contexts.



22
23
24
# File 'lib/escobar/heroku/build_request.rb', line 22

def missing_contexts
  @missing_contexts
end

Class Method Details

.new_from_build_request_and_error(build_request, error) ⇒ Object



23
24
25
26
27
28
# File 'lib/escobar/heroku/build_request.rb', line 23

def self.new_from_build_request_and_error(build_request, error)
  err = new(error.default_message)
  err.build_request = build_request
  err.missing_contexts = error.missing_contexts
  err
end