Exception: Speq::QuestionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/speq/question.rb

Overview

Error class for Question

Instance Method Summary collapse

Constructor Details

#initialize(question_name, error) ⇒ QuestionError

Returns a new instance of QuestionError.



8
9
10
# File 'lib/speq/question.rb', line 8

def initialize(question_name, error)
  super("#{question_name}: #{error}")
end