Can I customize the properties of my custom exception?
There is my class exception class
public class ParseFailedException : Exception
{
public string FailedFileName { get; set; }
public int? LineNo { get; set; }
public int? ColumnNo { get; set; }
}
Is it okay to use the property as given or should it be passed through a constructor method?
+2
source to share
3 answers