Sha256: 4dc33dc38cdb3cbd1fa354dde41acacfdbbcf5171e6d17a2052a5bc8c2cb0792
Contents?: true
Size: 309 Bytes
Versions: 2
Compression:
Stored size: 309 Bytes
Contents
module Geoloqi class ApiError < StandardError attr_reader :type attr_reader :reason def initialize(type, reason=nil) @type = type @reason = reason message = type message += " - #{reason}" if reason super message end end class Error < StandardError; end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geoloqi-0.9.9 | lib/geoloqi/error.rb |
geoloqi-0.9.8 | lib/geoloqi/error.rb |