Sha256: 0ea1e4bb1c695ad9e58a61907e7886de8958ab5f6235283d6782a59798b6eed0

Contents?: true

Size: 773 Bytes

Versions: 3

Compression:

Stored size: 773 Bytes

Contents

module GnipApi
  module Errors
    module Adapter
      class RequestError < StandardError
        def initialize msg='Request failed'
          @message = msg
        end
      end
    end

    module PowerTrack
      class MissingRules < StandardError
        def initialize
          @message = 'No rules provided to operate'
        end
      end
    end

    class MissingCredentials < StandardError
      def initialize
        @message = 'No credentials provided'
      end
    end
    
    class MissingAdapter < StandardError
      def initialize
        @message = 'No adapter selected'
      end
    end
  end
end

module Gnip
  class UndefinedMessage < StandardError
    def initialize 
      @message = 'Could not recognize message received'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gnip_api-0.0.4 lib/gnip_api/errors.rb
gnip_api-0.0.3 lib/gnip_api/errors.rb
gnip_api-0.0.2 lib/gnip_api/errors.rb