How does new promise terminate chained calls?

adds a promise with a chained call, and
calls three ajax,
. I want to terminate the promise without the next two calls when the first one returns an error. How to do


throw new Error ();
once an error is thrown, all then chains will be skipped and jumped directly to catch

Menu