This commit is contained in:
silverqx
2023-11-26 08:27:25 +01:00
parent 6287f6fc9f
commit c38968946b
7 changed files with 10 additions and 10 deletions

View File

@@ -34,11 +34,11 @@ namespace Orm::Configurations
/*! Add the SSL-related options to the connection 'options' hash. */
void addSslOptions(QVariantHash &options) const;
/*! Throw exception if configuration contains the 'schema' option. */
/*! Throw an exception if configuration contains the 'schema' option. */
void throwIfContainsSchemaOption() const;
/*! Throw exception if the 'search_path' option isn't QString or QStringList. */
void throwIfSearchPathHasWrongType() const;
/*! Throw exception if the 'dont_drop' option isn't QString or QStringList. */
/*! Throw an exception if the 'dont_drop' option isn't QString or QStringList. */
void throwIfDontDropHasWrongType() const;
};

View File

@@ -393,7 +393,7 @@ namespace Query
TinyORM connection. */
DatabaseConnection &refreshQtConnection(const QString &connection);
/*! Throw exception if DatabaseManager instance already exists. */
/*! Throw an exception if DatabaseManager instance already exists. */
static void checkInstance();
/*! Call QMetaType's register functions needed by the Qt 5. */

View File

@@ -940,7 +940,7 @@ namespace Orm::Query
const Column &column, const QString &comparison, QVariant value,
const QString &condition, WhereType type = WhereType::BASIC);
/*! Throw exception when m_bindings doesn't contain a passed type. */
/*! Throw an exception when m_bindings doesn't contain a passed type. */
void checkBindingType(BindingType type) const;
/*! All of the available clause operators. */

View File

@@ -536,7 +536,7 @@ namespace Orm::Tiny::Concerns
/*! Get an accessor value from the given attribute. */
QVariant getAccessorValueFrom(const Attribute &attribute) const;
/*! Throw exception if a relation is not defined. */
/*! Throw an exception if a relation is not defined. */
static void
validateUserMutator(const QString &name,
const QHash<QString, MutatorFunction> &userMutators);

View File

@@ -275,7 +275,7 @@ namespace Concerns
/*! Alias for the enum struct RelationMappingNotFoundError::From. */
using RelationFrom = Tiny::Exceptions::RelationMappingNotFoundError::From;
/*! Throw exception if a relation is not defined. */
/*! Throw an exception if a relation is not defined. */
void validateUserRelation(const QString &name,
RelationFrom from = RelationFrom::UNDEFINED) const;

View File

@@ -149,9 +149,9 @@ namespace TestUtils
std::unordered_map<QString, QVariant> &&optionsToUpdate,
const std::vector<QString> &optionsToRemove);
/*! Throw exception if the database manager instance was not yet created. */
/*! Throw an exception if the database manager instance was not yet created. */
static void throwIfNoManagerInstance();
/*! Throw exception if database connections were already initialized. */
/*! Throw an exception if database connections were already initialized. */
static void throwIfConnectionsInitialized();
/*! Shared pointer to the DatabaseManager instance. */

View File

@@ -59,7 +59,7 @@ namespace Tom::Commands
/*! Integrate tab-completion for the bash shell. */
int integrateBash() const;
/*! Throw exception if the bash completion directory doesn't exists. */
/*! Throw an exception if the bash completion directory doesn't exists. */
static void throwIfBashCompletionDirNotExists();
/*! Write the TinyORM tom tab-completion code for the bash shell. */
static bool writeTomBashCompletion();
@@ -91,7 +91,7 @@ namespace Tom::Commands
#endif
/* Others */
/*! Throw exception if unknown shell was passed. */
/*! Throw an exception if unknown shell was passed. */
[[noreturn]] static void throwIfUnknownShell(const QString &shellArg);
};