Exception: Ace::Review::Errors::PrNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/ace/review/errors.rb

Overview

Raised when a PR is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pr_identifier, details = nil) ⇒ PrNotFoundError

Returns a new instance of PrNotFoundError.



63
64
65
66
67
68
69
# File 'lib/ace/review/errors.rb', line 63

def initialize(pr_identifier, details = nil)
  @pr_identifier = pr_identifier
  message = "Pull request '#{pr_identifier}' not found."
  message += "\n#{details}" if details

  super(message)
end

Instance Attribute Details

#pr_identifierObject (readonly)

Returns the value of attribute pr_identifier.



61
62
63
# File 'lib/ace/review/errors.rb', line 61

def pr_identifier
  @pr_identifier
end