wrapError ( err ) {
    return {
      message: err.message,
      stack: err.stack,
    };
  }
/**
   * @method wrapError
   * @param {Error} err
   *
   * Wrap error so that it can be sent between renderer and main process
   */
@method wrapError
@param {Error} err

Wrap error so that it can be sent between renderer and main process
@method wrapError @param { Error } err Wrap error so that it can be sent between renderer and main process
wrapError ( err ) {
    return {
      message: err.message,
      stack: err.stack,
    };
  }
wrapError ( err ) { return { message : err . message , stack : err . stack , } ; }
@method wrapError
 @param {Error} err
@method wrapError @param { Error } err