Sha256: d40afdf263c932d9ca5ae5ecee7bb9571e9a7f0f792d2b4053c880e7a8d3f57d

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

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
    # @deprecated this class will be removed in the next release of the gem.
    class NilZone < 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
    # @deprecated this class will be removed in the next release of the gem.
    class ParseTime < Base; 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

3 entries across 3 versions & 1 rubygems

Version Path
timezone-0.99.2 lib/timezone/error.rb
timezone-0.99.1 lib/timezone/error.rb
timezone-0.99.0 lib/timezone/error.rb