Sha256: a7e9d4feaf7b4a2c07c80e059dfc957731a189ab3fff2210b391b4de596c8a18

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

module Screengem
  module Factories
    #
    # Knows the behaviour for error creation primitives.
    #
    module FactoryCreationError
      attr_reader :error_message

      def initialize(error_message)
        @error_message = error_message
      end

      def execute
        raise Screengem::ScreengemError, error_message
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
screengem-0.3.0 lib/screengem/factories/factory_creation_error.rb
screengem-0.2.0 lib/screengem/factories/factory_creation_error.rb
screengem-0.1.2 lib/screengem/factories/factory_creation_error.rb
screengem-0.1.1 lib/screengem/factories/factory_creation_error.rb
screengem-0.1.0 lib/screengem/factories/factory_creation_error.rb