Hi,

I'm getting a "superclass mismatch for class TooManyAnswersError" with the
following code. Other topics I've found talk about code being reloaded, which
I'm sure isn't happening here.

===========
class QuestionnaireAnswerError < ArgumentError
  attr_accessor :question_id
  
  def initialize(*args)
    self.question_id = args.shift
    super(args)
  end
end

class BadAnswerCountError < QuestionnaireAnswerError
end

class TooManyAnswersError < BadAnswerCountError
end
===========
Changing the penultimate line to "class TooManyAnswersError <
QuestionnaireAnswerError" works (although doesn't do what I want)

Hope someone can help work out what I'm doing wrong,
Gareth