Sha256: 250b7dfacff5bb54ca64d9dcd287a23aa92a71d538dbc1af3e43e4b37472c7a4
Contents?: true
Size: 893 Bytes
Versions: 30
Compression:
Stored size: 893 Bytes
Contents
# frozen_string_literal: true module Timezone # Error messages that can be raised by this gem. To catch any # related error message, use Error::Base. # # begin # ... # rescue Timezone::Error::Base => e # puts "Timezone Error: #{e.message}" # end module Error # Top-level error. All other timezone errors subclass this one. class Base < StandardError; end # Indicates an invalid timezone name. class InvalidZone < Base; end # Indicates a lookup failure. class Lookup < Base; end # Indicates an error during lookup using the geonames API. class GeoNames < Lookup; end # Indicates an error during lookup using the google API. class Google < Lookup; end # Indicates a missing stub during a test lookup. class Test < Lookup; end # Indicates an invalid configuration. class InvalidConfig < Base; end end end
Version data entries
30 entries across 30 versions & 1 rubygems