Sha256: 5c7d760ef1029ff3f44fdefe98c647633d8804d2ad9c4fe87908ce4c26d302bf

Contents?: true

Size: 1.22 KB

Versions: 241

Compression:

Stored size: 1.22 KB

Contents

class RbbtException < StandardError; end
class ParameterException < RbbtException; end
class FieldNotFoundError < RbbtException;end
class ClosedStream < RbbtException; 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
class LockInterrupted < TryAgain; end

class RemoteServerError < RbbtException; end

class DependencyError < Aborted
  def initialize(msg)
    if defined? Step and Step === msg
      step = msg
      workflow = step.path.split("/")[-3]
      new_msg = [workflow, step.short_path, step.messages.last] * " - "
      new_msg = [step.path, step.messages.last] * ": "
      super(new_msg)
    else
      super(msg)
    end
  end
end

class DontClose < Exception; end

class KeepLocked < Exception
  attr_accessor :payload
  def initialize(payload)
    @payload = payload
  end
end

class KeepBar < Exception
  attr_accessor :payload
  def initialize(payload)
    @payload = payload
  end
end

class StopInsist < Exception
  attr_accessor :exception
  def initialize(exception)
    @exception = exception
  end
end

Version data entries

241 entries across 241 versions & 1 rubygems

Version Path
rbbt-util-5.26.67 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.66 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.65 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.64 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.63 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.62 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.59 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.58 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.57 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.55 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.54 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.53 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.52 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.50 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.49 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.48 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.47 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.46 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.45 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.26.44 lib/rbbt/util/misc/exceptions.rb