docs: function extractFromErrorClass(err, errorMessage) {
  
    errorMessage.setMessage(err.stack);
  
    if (has(err, 'user')) {
  
      errorMessage.setUser(err.user);
    }
  
    if (has(err, 'serviceContext') && isObject(err.serviceContext)) {
  
      errorMessage.setServiceContext(err.serviceContext.service,
                                     err.serviceContext.version);
    }
  }