Sha256: 0507abaceba753d5e523e30551e826c71a8f8a22d5ff2fc0fd13df9e3db9c4ab
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
module Geoloqi class ApiError < StandardError attr_reader :status, :type, :reason def initialize(status, type, reason=nil) @status = status @type = type @reason = reason message = type message += " - #{reason}" if reason message += " (#{status})" super message end end class Error < StandardError; end class ArgumentError < ArgumentError; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
geoloqi-0.9.13 | lib/geoloqi/error.rb |
geoloqi-0.9.12 | lib/geoloqi/error.rb |
geoloqi-0.9.11 | lib/geoloqi/error.rb |