Converting string into exception
c#, exception
Solution
Exceptions are created as any other object, using the `new` keyword. You can provide it a message argument that you can store your string in:
Exception e = new Exception("Your string goes here");
Problem
I want to convert a string into exception but not able to find any thing on google. I am using C# .Net 2.0. Reason is because third party client has a method that is logging method and only takes exception and i have a scenario where i must need to log something but using that method. so must need to convert string into exception.