use Class.new to create error classes