
com.github.jasync.sql.db.exceptions.InsufficientParametersException.kt Maven / Gradle / Ivy
package com.github.jasync.sql.db.exceptions
/**
*
* Raised when the user gives more or less parameters than the query takes. Each parameter is a ?
* (question mark) in the query string. The count of ? should be the same as the count of items in the provided
* sequence of parameters.
*
* @param expected the expected count of parameters
* @param given the collection given
*/
@Suppress("RedundantVisibilityModifier")
public class InsufficientParametersException(expected: Int, given: List) : DatabaseException(
"The query contains %s parameters but you gave it %s (%s)".format(
expected, given.size, given.joinToString(",")
)
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy