Exception: OpenWFE::PausedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- OpenWFE::PausedError
- Defined in:
- lib/openwfe/expool/expressionpool.rb
Overview
This error is raised when an expression belonging to a paused process is applied or replied to.
Instance Attribute Summary collapse
-
#wfid ⇒ Object
readonly
Returns the value of attribute wfid.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns true if the other is a PausedError issued for the same process instance (wfid).
-
#hash ⇒ Object
Returns a hash for this PausedError instance.
-
#initialize(wfid) ⇒ PausedError
constructor
A new instance of PausedError.
Constructor Details
#initialize(wfid) ⇒ PausedError
Returns a new instance of PausedError.
1050 1051 1052 1053 1054 |
# File 'lib/openwfe/expool/expressionpool.rb', line 1050 def initialize (wfid) super "process '#{wfid}' is paused" @wfid = wfid end |
Instance Attribute Details
#wfid ⇒ Object (readonly)
Returns the value of attribute wfid.
1048 1049 1050 |
# File 'lib/openwfe/expool/expressionpool.rb', line 1048 def wfid @wfid end |
Instance Method Details
#==(other) ⇒ Object
Returns true if the other is a PausedError issued for the same process instance (wfid).
1069 1070 1071 1072 1073 1074 |
# File 'lib/openwfe/expool/expressionpool.rb', line 1069 def == (other) return false unless other.is_a?(PausedError) (@wfid == other.wfid) end |
#hash ⇒ Object
Returns a hash for this PausedError instance. (simply returns the hash of the paused process’ wfid).
1060 1061 1062 1063 |
# File 'lib/openwfe/expool/expressionpool.rb', line 1060 def hash @wfid.hash end |