Error handling. Model for errors.