Added Exception class to NLP