From: William Crawford Date: 2006-09-06T00:30:23+09:00 Subject: Re: Superclass mismatch Gareth Adams wrote: > Hope someone can help work out what I'm doing wrong, > Gareth Changing your example slightly shows what could be the problem: 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 class TooManyAnswersError < QuestionnaireAnswerError end It looks like you've tried to define the class twice with different super classes. HTH -- Posted via http://www.ruby-forum.com/.