Sha256: 1a086b2c6533aa35f9906c40557f580f8682e05e1c7d3d9dce580d21025fdaad

Contents?: true

Size: 615 Bytes

Versions: 2

Compression:

Stored size: 615 Bytes

Contents

module SalesforceStreamer
  class MissingCLIFlagError < StandardError
    def initialize(flag)
      super 'Missing required command line flag: ' + flag.to_s
    end
  end

  class NilQueryError < StandardError
    def initialize(name)
      super 'Query not defined for ' + name.to_s
    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.to_s + ' (' + name.size.to_s + '/25)'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
salesforce_streamer-0.4.1 lib/salesforce_streamer/errors.rb
salesforce_streamer-0.4.0 lib/salesforce_streamer/errors.rb