e = new InvalidModelException(msg);
break;
case MISSING_CONSTRUCTOR_PARAMS:
case MISSING_FIELDS:
case MISSING_METHODS:
e = new MissingElementsException(failureType.message, missingElements, clazz);
break;
default:
e = new RuntimeException(msg);
break;
}