Exception: Gm::Notepad::ExceededTimeToLiveError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RuntimeError
- Gm::Notepad::ExceededTimeToLiveError
- Defined in:
- lib/gm/notepad/exceptions.rb
Instance Attribute Summary collapse
-
#text_when_time_to_live_exceeded ⇒ Object
readonly
Returns the value of attribute text_when_time_to_live_exceeded.
Instance Method Summary collapse
-
#initialize(text:, time_to_live:, text_when_time_to_live_exceeded:) ⇒ ExceededTimeToLiveError
constructor
A new instance of ExceededTimeToLiveError.
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_exceeded ⇒ Object (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 |