Warning that users must handle
- by hagaik
I am looking for a way to set warning that the user will have to respond. In a sense I would like to use late exception mechanize that occur after the function already finished executing.and returned the wanted value.
SomeObject Foo(int input)
{
SomeObject result;
// do something. oh, we need to warn the user.
return result;
}
void Main()
{
SomeObject object;
object = Foo(1); // after copy consturctor is done I would like an exception to be thrown
}