Exception: ProcessFailed
- Inherits:
-
StandardError
- Object
- StandardError
- ProcessFailed
- Defined in:
- lib/rbbt/util/misc/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#pid ⇒ Object
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(pid = Process.pid, msg = nil) ⇒ ProcessFailed
constructor
A new instance of ProcessFailed.
Constructor Details
#initialize(pid = Process.pid, msg = nil) ⇒ ProcessFailed
Returns a new instance of ProcessFailed.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/rbbt/util/misc/exceptions.rb', line 15 def initialize(pid = Process.pid, msg = nil) @pid = pid @msg = msg if @pid if @msg = "Process #{@pid} failed - #{@msg}" else = "Process #{@pid} failed" end else = "Failed to run #{@msg}" end super() end |
Instance Attribute Details
#msg ⇒ Object
Returns the value of attribute msg.
14 15 16 |
# File 'lib/rbbt/util/misc/exceptions.rb', line 14 def msg @msg end |
#pid ⇒ Object
Returns the value of attribute pid.
14 15 16 |
# File 'lib/rbbt/util/misc/exceptions.rb', line 14 def pid @pid end |