Sha256: 536b213b161c8d6fb226859514ade04f3a7bcd229260cfb4acac9e289b0ee503
Contents?: true
Size: 409 Bytes
Versions: 18
Compression:
Stored size: 409 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
18 entries across 18 versions & 1 rubygems