Sha256: 37c887a787836444c8ea5f875404445d0f6dea0b009eb147adc1e981d8d9d19c

Contents?: true

Size: 503 Bytes

Versions: 7

Compression:

Stored size: 503 Bytes

Contents

module Timezone
  # Error messages that can be raised by this gem. To catch any related error message, simply use Error::Base.
  #
  #   begin
  #     ...
  #   rescue Timezone::Error::Base => e
  #     puts "Timezone Error: #{e.message}"
  #   end
  module Error
    class Base < StandardError; end
    class InvalidZone < Base; end
    class NilZone < Base; end
    class GeoNames < Base; end
    class Google < Base; end
    class ParseTime < Base; end
    class InvalidConfig < Base ; end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
timezone-0.5.0 lib/timezone/error.rb
timezone-0.4.3 lib/timezone/error.rb
timezone-0.4.2 lib/timezone/error.rb
timezone-0.4.1 lib/timezone/error.rb
timezone-0.4.0 lib/timezone/error.rb
timezone-0.3.11 lib/timezone/error.rb
timezone-0.3.10 lib/timezone/error.rb