In
QwrapIn development, you want to implement a chained interrupt function.
That is:
W ('div '). do11 (). do12 (). When (BL). Do21 (). do22 ();
When writing, it is a long chain, but it is expected that if the BL value is false, the subsequent execution will not be executed (or both will be invalid ). Instead of throwing an exception.
However, according to the current JS syntax, it seems difficult to do this.
As a result, I complained about JS exceptions. Why can't I choose to let the current object handle them? Instead, I directly throw them out.
Example: obj. anunknownmethod ();
In this case, an exception occurs because there is no method.
If you can check whether OBJ has oneCatchmyexception (Ex)If yes, call obj. catchmyexception (Ex) first. If not, it is not too late to throw it out.
The advantage is that you must first use obj. catchmyexception to handle exceptions generated by obj. Failed to handle the problem, and then threw it out.
There are no similar features. Sigh ....
Or I cannot find it?