class Pione::Agent::TimeoutError
TimeoutError
is raised when the agent is timeouted.
Attributes
agent[R]
agent_states[R]
sec[R]
Public Class Methods
new(agent, states, sec)
click to toggle source
# File lib/pione/agent/agent-exception.rb, line 21 def initialize(agent, states, sec) @agent = agent @states = states @sec = sec end
Public Instance Methods
message()
click to toggle source
# File lib/pione/agent/agent-exception.rb, line 27 def message sec = @sec ? "(%s sec)" % @sec : "" "%s timeouted %s at state [%s]" % [@agent, sec, @states.map{|s| s.to_s}.join(", ")] end