lib/rbbt/util/misc/exceptions.rb in rbbt-util-5.23.5 vs lib/rbbt/util/misc/exceptions.rb in rbbt-util-5.23.6

- old
+ new

@@ -1,10 +1,17 @@ class RbbtException < StandardError; end class ParameterException < RbbtException; end class FieldNotFoundError < RbbtException;end class ClosedStream < RbbtException; end -class ProcessFailed < StandardError; end +class ProcessFailed < StandardError; + def initialize(pid = Process.pid) + @pid = pid + @msg = "Process #{@pid} failed" + super(@msg) + end + +end class Aborted < StandardError; end class TryAgain < StandardError; end class SemaphoreInterrupted < TryAgain; end