This error description doesn't really fit the wrong-class case. Can you return a different error instead?