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

Version Path
timezone-1.3.25 lib/timezone/error.rb
timezone-1.3.24 lib/timezone/error.rb
timezone-1.3.23 lib/timezone/error.rb
timezone-1.3.22 lib/timezone/error.rb
timezone-1.3.21 lib/timezone/error.rb
timezone-1.3.20 lib/timezone/error.rb
timezone-1.3.19 lib/timezone/error.rb
timezone-1.3.18 lib/timezone/error.rb
timezone-1.3.17 lib/timezone/error.rb
timezone-1.3.16 lib/timezone/error.rb
timezone-1.3.15 lib/timezone/error.rb
timezone-1.3.14 lib/timezone/error.rb
timezone-1.3.13 lib/timezone/error.rb
timezone-1.3.12 lib/timezone/error.rb
timezone-1.3.11 lib/timezone/error.rb
timezone-1.3.10 lib/timezone/error.rb
timezone-1.3.9 lib/timezone/error.rb
timezone-1.3.8 lib/timezone/error.rb
timezone-1.3.7 lib/timezone/error.rb
timezone-1.3.6 lib/timezone/error.rb