Is it possible to create a class which does not exist with specific name from a dynamic string. I'm asking this because I want to create a class based on some string result.
If it is possible please share some example or some reference link.
I see that my question is confusing, so here is more clarification:
Assume that I have a method/function/procedure which returns a string - MyNewClassName(). I want to create a class with name equal to the result of MyNewClassName(), which is dynamic and also it is a custom name.
EDIT from comment
I'll use it as some kind of debugging, because I'm trying to fix some exception remotely, the problem is that the system does not provide the exception message only the type of the exception. So my idea is to create custom exception named with the result of the actual exception.