createErrorEvent_(type, request) {
      const errorEvent = new Event(type);
      errorEvent.status = request.xhr.status;
      if (request.xhr.status == 200) {
        errorEvent.errorCode = request.result['errorCode'];
        errorEvent.message = request.result['message'];
      } else {
        errorEvent.errorCode = 0;
        errorEvent.message = '';
      }
      errorEvent.origin = request.origin;
      return errorEvent;
    }
/**
     * Creates a Google Cloud Print interface error that is ready to dispatch.
     * @param {!cloudprint.CloudPrintInterfaceEventType} type Type of the
     *     error.
     * @param {!cloudprint.CloudPrintRequest} request Request that has been
     *     completed.
     * @return {!Event} Google Cloud Print interface error event.
     * @private
     */
Creates a Google Cloud Print interface error that is ready to dispatch.
@param {!cloudprint.CloudPrintInterfaceEventType} type Type of the
error.
@param {!cloudprint.CloudPrintRequest} request Request that has been
completed.
@return {!Event} Google Cloud Print interface error event.
@private
Creates a Google Cloud Print interface error that is ready to dispatch . @param { !cloudprint . CloudPrintInterfaceEventType } type Type of the error . @param { !cloudprint . CloudPrintRequest } request Request that has been completed . @return { !Event } Google Cloud Print interface error event . @private
createErrorEvent_(type, request) {
      const errorEvent = new Event(type);
      errorEvent.status = request.xhr.status;
      if (request.xhr.status == 200) {
        errorEvent.errorCode = request.result['errorCode'];
        errorEvent.message = request.result['message'];
      } else {
        errorEvent.errorCode = 0;
        errorEvent.message = '';
      }
      errorEvent.origin = request.origin;
      return errorEvent;
    }
createErrorEvent_ ( type , request ) { const errorEvent = new Event ( type ) ; errorEvent . status = request . xhr . status ; if ( request . xhr . status == 200 ) { errorEvent . errorCode = request . result [ 'errorCode' ] ; errorEvent . message = request . result [ 'message' ] ; } else { errorEvent . errorCode = 0 ; errorEvent . message = '' ; } errorEvent . origin = request . origin ; return errorEvent ; }
Creates a Google Cloud Print interface error that is ready to dispatch.
Creates a Google Cloud Print interface error that is ready to dispatch .