Exception: RCron::Timeout
- Inherits:
-
Exception
- Object
- Exception
- RCron::Timeout
- Defined in:
- lib/rcron/timeout.rb
Overview
Timeout exception
Instance Attribute Summary collapse
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#terminated_at ⇒ Object
readonly
Returns the value of attribute terminated_at.
Instance Method Summary collapse
-
#initialize(msg, started_at, terminated_at) ⇒ Timeout
constructor
A new instance of Timeout.
Constructor Details
#initialize(msg, started_at, terminated_at) ⇒ Timeout
Returns a new instance of Timeout.
7 8 9 10 11 |
# File 'lib/rcron/timeout.rb', line 7 def initialize(msg, started_at, terminated_at) super(msg) @started_at = started_at @terminated_at = terminated_at end |
Instance Attribute Details
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at.
4 5 6 |
# File 'lib/rcron/timeout.rb', line 4 def started_at @started_at end |
#terminated_at ⇒ Object (readonly)
Returns the value of attribute terminated_at.
5 6 7 |
# File 'lib/rcron/timeout.rb', line 5 def terminated_at @terminated_at end |