Exception: Gm::Notepad::ExceededTimeToLiveError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/gm/notepad/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, time_to_live:, text_when_time_to_live_exceeded:) ⇒ ExceededTimeToLiveError

Returns a new instance of ExceededTimeToLiveError.



26
27
28
29
# File 'lib/gm/notepad/exceptions.rb', line 26

def initialize(text:, time_to_live:, text_when_time_to_live_exceeded:)
  @text_when_time_to_live_exceeded = text_when_time_to_live_exceeded
  super(%(Expanding the given text "#{text}" exceed the time to live of #{time_to_live}))
end

Instance Attribute Details

#text_when_time_to_live_exceededObject (readonly)

Returns the value of attribute text_when_time_to_live_exceeded.



25
26
27
# File 'lib/gm/notepad/exceptions.rb', line 25

def text_when_time_to_live_exceeded
  @text_when_time_to_live_exceeded
end