Forum Discussion
RobbSalzmann
2 years agoValued Contributor II
Perhaps you're not seeing what you expect to see in the log. Your "Throw" will be "caught" by the Catch block and logged there. However, you are logging ex.ToString which will likely produce a statement about the class type of the exception. If you want to see "checking" appear in the log, change ex.toString to ex.Message
Better yet, just write to the log directly instead of Throwing an unnecessary exception.
Related Content
- 4 months ago
- 6 months ago