Sha256: 9acf0c9c015219a22a3a910111c3a79d056fb4968d7456c8315cd613fc2c0334

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

class RbbtException < StandardError; end
class ParameterException < RbbtException; end
class FieldNotFoundError < RbbtException;end
class ClosedStream < RbbtException; end

class ProcessFailed < StandardError; end

class Aborted < StandardError; end

class TryAgain < StandardError; end
class SemaphoreInterrupted < 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

8 entries across 8 versions & 1 rubygems

Version Path
rbbt-util-5.23.5 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.23.4 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.23.3 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.23.2 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.23.1 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.23.0 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.22.5 lib/rbbt/util/misc/exceptions.rb
rbbt-util-5.22.4 lib/rbbt/util/misc/exceptions.rb