Sha256: c957fd211f0572cf66bd34e94fb61472d020e4f0d233b8be97eb9b12ea9add91
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
module GnipApi module Errors module Configuration class InvalidOutputFormat < StandardError def initialize msg="Invalid output format. Available formats: #{GnipApi::Configuration::OUTPUT_FORMATS}" @message = msg end end end module JsonParser class ParseError < StandardError end end module Adapter class RequestError < StandardError; end class InvalidInput < StandardError; end class RateLimitError < StandardError def initialize msg='Exceded rate limits' @message = msg end end class GnipSoftwareError < StandardError def initialize msg='Gnip Software Error' @message = msg end end end module PowerTrack class StreamDown < StandardError; end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gnip_api-1.2.4 | lib/gnip_api/errors.rb |