I have a doubt regarding the possible arguments in throw.
As far I have read in Robert Lafore ,it gives only a basic idea about exceptions.
I read that arguments in throw can be object of the exception class but in one example i found
throw 'x';
so please give me some link from where i can find more about arguments in throw.
thanks
throw can throw ANYTHING! It can be an exception class, a fundamental type, a container, some user-defined type, possibly(I'm not sure about theese, so don't complain if theese are wrong) arrays, enums, unions...