H
hharry
hello all,
quick syntax question. i am writing a custom exception class and came
across an example:
public class dataProvException : ApplicationException
{
public dataProvException()
{
//
// TODO: Add constructor logic here
//
}
public dataProvException(string msg) : base(msg)
{
//
// TODO: Add constructor logic here
//
}
}
in the second constructor, what is the purpose of : base(msg) ?
i understand that the base keyword ids used to access members of the
base class ?
quick syntax question. i am writing a custom exception class and came
across an example:
public class dataProvException : ApplicationException
{
public dataProvException()
{
//
// TODO: Add constructor logic here
//
}
public dataProvException(string msg) : base(msg)
{
//
// TODO: Add constructor logic here
//
}
}
in the second constructor, what is the purpose of : base(msg) ?
i understand that the base keyword ids used to access members of the
base class ?