Exception: RCron::Timeout

Inherits:
Exception
  • Object
show all
Defined in:
lib/rcron/timeout.rb

Overview

Timeout exception

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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_atObject (readonly)

Returns the value of attribute terminated_at.



5
6
7
# File 'lib/rcron/timeout.rb', line 5

def terminated_at
  @terminated_at
end