I want to create new exception type to catch it with specify logging. But I want to pass int value to ctor. How to do it? I try :
public class IncorrectTimeIdException : Exception
{
public IncorrectTimeIdException(int TypeID) : base(message)
{
}
}
but I got an error during compilation.
1 Answer