Sha256: 3bf1ee13e8add12538d73343002b0a3c8ad5f4c4ce29b2e08c1345b03f94fc41

Contents?: true

Size: 436 Bytes

Versions: 11

Compression:

Stored size: 436 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 ParseTime < Base; end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
timezone-0.3.3 lib/timezone/error.rb
timezone-0.3.2 lib/timezone/error.rb
timezone-0.3.1 lib/timezone/error.rb
timezone-0.3.0 lib/timezone/error.rb
timezone-0.2.1 lib/timezone/error.rb
timezone-0.1.5 lib/timezone/error.rb
timezone-0.1.4 lib/timezone/error.rb
timezone-0.1.3 lib/timezone/error.rb
timezone-0.1.2 lib/timezone/error.rb
timezone-0.1.1 lib/timezone/error.rb
timezone-0.1.0 lib/timezone/error.rb