added ClassException class to identify the exceptions in M table