text: const internalError = (message, internalCode) => ({
    message,
    internalCode
  });
  
  exports.DATABASE_ERROR = 'database_error';
  exports.databaseError = message => internalError(message, exports.DATABASE_ERROR);
  
  exports.DEFAULT_ERROR = 'default_error';
  exports.defaultError = message => internalError(message, exports.DEFAULT_ERROR);
  
  exports.ENTITY_ALREADY_EXISTS = 'entity_already_exists';
  exports.entityAlreadyExists = message => internalError(message, exports.ENTITY_ALREADY_EXISTS);
  
  exports.EXTERNAL_API_ERROR = 'external_api_error';
  exports.externalApiError = message => internalError(message, exports.EXTERNAL_API_ERROR);
  
  exports.VALIDATION_ERROR = 'validation_error';
  exports.validationError = message => internalError(message, exports.VALIDATION_ERROR);
  
  exports.MISSING_DATA_ERROR = 'missing_data_error';
  exports.missingDataError = message => internalError(message, exports.MISSING_DATA_ERROR);
  
  exports.ENCRYPTION_ERROR = 'encryption_error';
  exports.encryptionError = message => internalError(message, exports.ENCRYPTION_ERROR);
  
  exports.AUTHENTICATION_ERROR = 'authentication_error';
  exports.authenticationError = message => internalError(message, exports.AUTHENTICATION_ERROR);
  
  exports.NOT_FOUND_ERROR = 'not_found_error';
  exports.notFoundError = message => internalError(message, exports.NOT_FOUND_ERROR);
  
  exports.FORBIDDEN_ERROR = 'forbidden_error';
  exports.forbiddenError = message => internalError(message, exports.FORBIDDEN_ERROR);
  
  exports.EMAIL_SEND_ERROR = 'email_send_error';
  exports.emailSendError = message => internalError(message, exports.EMAIL_SEND_ERROR);
  