Reference the correct error class