Remove last_error attr from custom error class