Sha256: d574f5ee7fa90a0628f40e04809df555311e831ffe54f84604882b88dcf68e65
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
module GnipApi module Errors module JsonParser class ParseError < StandardError end end 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gnip_api-1.0.1 | lib/gnip_api/errors.rb |
gnip_api-1.0.0 | lib/gnip_api/errors.rb |
gnip_api-0.0.9 | lib/gnip_api/errors.rb |
gnip_api-0.0.8 | lib/gnip_api/errors.rb |