error class for alert