A
Avi
Hi all,
I'm trying to write an exception with overloaded constructor, where one will
raise an exception while the other will only write to log. However, trying
the follwoing did not work
throw new NMSTestException("My Message", 0);
Please let me know what am I doing wrong
public class NMSTestException : Exception
{
public NMSTestException(string Message):base(Message)
{
// raise
}
public NMSTestException(string Message, int dummy)
{
// do not raise, write to log only
}
}
I'm trying to write an exception with overloaded constructor, where one will
raise an exception while the other will only write to log. However, trying
the follwoing did not work
throw new NMSTestException("My Message", 0);
Please let me know what am I doing wrong
public class NMSTestException : Exception
{
public NMSTestException(string Message):base(Message)
{
// raise
}
public NMSTestException(string Message, int dummy)
{
// do not raise, write to log only
}
}