Exception: Ace::Review::Errors::DiffTooLargeError

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

Overview

Raised when PR diff exceeds GitHub’s API size limit (300 files)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pr_identifier, details = nil) ⇒ DiffTooLargeError

Returns a new instance of DiffTooLargeError.



76
77
78
79
80
81
82
# File 'lib/ace/review/errors.rb', line 76

def initialize(pr_identifier, details = nil)
  @pr_identifier = pr_identifier
  message = "Pull request '#{pr_identifier}' diff exceeds GitHub API size limit."
  message += "\n#{details}" if details

  super(message)
end

Instance Attribute Details

#pr_identifierObject (readonly)

Returns the value of attribute pr_identifier.



74
75
76
# File 'lib/ace/review/errors.rb', line 74

def pr_identifier
  @pr_identifier
end