ErrorException added.
Error handling.