Created exception class for servlet.