Sha256: 8e13079a0ca4212df427812a1dd4c059cbd4385d22b9f8f77fa20c16f024e388
Contents?: true
Size: 976 Bytes
Versions: 3
Compression:
Stored size: 976 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 module Search class MissingParameters < StandardError def initialize missing_params @message = "Missing required parameters: #{missing_params}" 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.7 | lib/gnip_api/errors.rb |
gnip_api-0.0.6 | lib/gnip_api/errors.rb |
gnip_api-0.0.5 | lib/gnip_api/errors.rb |