Making an exception class
-
How do I make my own exception class? This is as far as I got:
class WhatEverException : System.ApplicationException { }
Now... How do I set the exception message from my class? I didn't notice any members that would allow it... am I just missing soemthing? -
How do I make my own exception class? This is as far as I got:
class WhatEverException : System.ApplicationException { }
Now... How do I set the exception message from my class? I didn't notice any members that would allow it... am I just missing soemthing?check out this msdn article where eric gunnerson goes into the Right Way to write an exeception class. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp08162001.asp?frame=true[^]
-
check out this msdn article where eric gunnerson goes into the Right Way to write an exeception class. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp08162001.asp?frame=true[^]