Module: Screengem::Factories::FactoryCreationError
- Included in:
- QuestionFactory::QuestionError, TaskFactory::TaskError
- Defined in:
- lib/screengem/factories/factory_creation_error.rb
Overview
Knows the behaviour for error creation primitives.
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 |
# File 'lib/screengem/factories/factory_creation_error.rb', line 11 def execute raise Screengem::ScreengemError, @error_message end |
#initialize(error_message) ⇒ Object
7 8 9 |
# File 'lib/screengem/factories/factory_creation_error.rb', line 7 def initialize() @error_message = end |