Sha256: f7c0db90e659ef923dd884be85b35c2102bee9f4b394ac128812d750cb1f88c4

Contents?: true

Size: 814 Bytes

Versions: 11

Compression:

Stored size: 814 Bytes

Contents

# frozen_string_literal: true

module AstrologicalForecast
  OPTIONS_TYPE = %w[Общий Любовный Семейный Карьерный Здоровье Тинейджер Флирт Друзья].freeze
  OPTIONS_PERIOD = ['На сегодня', 'На завтра', 'На неделю', 'На месяц', 'На год'].freeze

  class IncorrectType < StandardError
    def message
      "Некорректный тип прогноза (см. #{OPTIONS_TYPE})"
    end
  end

  class IncorrectDate < StandardError
    def message
      'Указан некорректный формат даты (ДД.ММ)'
    end
  end

  class IncorrectPeriod < StandardError
    def message
      "Некорректный период прогнозирования (см. #{OPTIONS_PERIOD})"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
astrological_forecast-2.0.5 lib/astrological_forecast/errors.rb
astrological_forecast-2.0.4 lib/astrological_forecast/errors.rb
astrological_forecast-2.0.2 lib/astrological_forecast/errors.rb
astrological_forecast-2.0.1 lib/astrological_forecast/errors.rb
astrological_forecast-1.3.5 lib/astrological_forecast/errors.rb
astrological_forecast-1.3.4 lib/astrological_forecast/errors.rb
astrological_forecast-1.3.3 lib/astrological_forecast/errors.rb
astrological_forecast-1.2.3 lib/astrological_forecast/errors.rb
astrological_forecast-1.2.2 lib/astrological_forecast/errors.rb
astrological_forecast-1.2.1 lib/astrological_forecast/errors.rb
astrological_forecast-1.2.0 lib/astrological_forecast/errors.rb