emit error exception