code: function (errorHandler) {
          if (!isFunction(errorHandler)) {
              throw new core.TypeError({
                  code: 'application-configure',
                  message: "errorHandler must be a function"
              });
          }
          this.errorHandlers.push(errorHandler);
          return this;
      }
docs: Error handler
  
  @param {Function} errorHandler
  @return this