Sha256: a459727251f0600a304827402ef0f2922abd30a9e5b15ef099a12f9f2a136a87

Contents?: true

Size: 608 Bytes

Versions: 17

Compression:

Stored size: 608 Bytes

Contents

module Shamu
  module Features

    # An error occcured in the Features domain.
    class Error < Shamu::Error

      private

        def translation_scope
          super.dup.insert( 1, :features )
        end

    end

    # An feature toggle was checked that has been marked as retired.
    class RetiredToggleError < Error

      # @!attribute
      # @return [Toggle] the retired toggle
      attr_reader :toggle

      def initialize( toggle )
        @toggle = toggle

        super translate( :retired_toggle_checked, name: toggle.name, retire_at: toggle.retire_at.to_s )
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shamu-0.0.24 lib/shamu/features/errors.rb
shamu-0.0.21 lib/shamu/features/errors.rb
shamu-0.0.20 lib/shamu/features/errors.rb
shamu-0.0.19 lib/shamu/features/errors.rb
shamu-0.0.18 lib/shamu/features/errors.rb
shamu-0.0.17 lib/shamu/features/errors.rb
shamu-0.0.15 lib/shamu/features/errors.rb
shamu-0.0.14 lib/shamu/features/errors.rb
shamu-0.0.13 lib/shamu/features/errors.rb
shamu-0.0.11 lib/shamu/features/errors.rb
shamu-0.0.9 lib/shamu/features/errors.rb
shamu-0.0.8 lib/shamu/features/errors.rb
shamu-0.0.7 lib/shamu/features/errors.rb
shamu-0.0.5 lib/shamu/features/errors.rb
shamu-0.0.4 lib/shamu/features/errors.rb
shamu-0.0.3 lib/shamu/features/errors.rb
shamu-0.0.2 lib/shamu/features/errors.rb