Exception: Dependabot::PullRequestCreator::AnnotationError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/pull_request_creator.rb

Overview

AnnotationError is raised if a PR was created, but failed annotation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cause, pull_request) ⇒ AnnotationError

Returns a new instance of AnnotationError.



63
64
65
66
67
# File 'lib/dependabot/pull_request_creator.rb', line 63

def initialize(cause, pull_request)
  super(cause.message)
  @cause = cause
  @pull_request = pull_request
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



54
55
56
# File 'lib/dependabot/pull_request_creator.rb', line 54

def cause
  @cause
end

#pull_requestObject (readonly)

Returns the value of attribute pull_request.



60
61
62
# File 'lib/dependabot/pull_request_creator.rb', line 60

def pull_request
  @pull_request
end