The following code should do what you need
google.script.run.withFailureHandler(myFailureHandler).withSuccessHandler(handler1);
This is documented in a paragraph Success and Failure Handlers. The text begins with
You can use any combination withSuccessHandler, withFailureHandler, and withUserObject.
source
share