Sha256: ad03e9a4b03cdfe0aa3cf309a2999a6cae8bf83c0b768fda63ee2743e49c52a2

Contents?: true

Size: 792 Bytes

Versions: 13

Compression:

Stored size: 792 Bytes

Contents

module SalesforceStreamer
  ReplayIdError = Class.new(StandardError)

  class MissingCLIFlagError < StandardError
    def initialize(flag)
      super "Missing required command line flag: #{flag}"
    end
  end

  class NilQueryError < StandardError
    def initialize(name)
      super "Query not defined for #{name}"
    end
  end

  class PushTopicHandlerMissingError < StandardError
    def initialize(message)
      super "Unable to load constant #{message}."
    end
  end

  class PushTopicNameTooLongError < StandardError
    def initialize(name)
      super "PushTopic name: #{name} (#{name.size}/25)"
    end
  end

  class UnprocessableHandlerError < StandardError
    def initialize(constant)
      super "#{constant} does not repond to .call or .perform_async"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
salesforce_streamer-2.9.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.8.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.6.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.5.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.4.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.4.0.rc1 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.3.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.2.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.1.1 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.1.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.0.0 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.0.0.rc2 lib/salesforce_streamer/errors.rb
salesforce_streamer-2.0.0.rc1 lib/salesforce_streamer/errors.rb