Exception: Clacky::Utils::FileIgnoreHelper::WalkBudgetExceeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clacky/utils/file_ignore_helper.rb

Overview

Raised internally to abort a walk when a budget is exhausted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ WalkBudgetExceeded

Returns a new instance of WalkBudgetExceeded.



156
157
158
159
# File 'lib/clacky/utils/file_ignore_helper.rb', line 156

def initialize(reason)
  @reason = reason
  super(reason.to_s)
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



155
156
157
# File 'lib/clacky/utils/file_ignore_helper.rb', line 155

def reason
  @reason
end