# Uses of Class
org.springframework.jdbc.datasource.init.ScriptException

Packages that use ScriptException
Package
Description
org.springframework.jdbc.datasource.init
Provides extensible support for initializing databases through scripts.

## Uses of ScriptException in org.springframework.jdbc.datasource.init

Subclasses of ScriptException in org.springframework.jdbc.datasource.init
Modifier and Type
Class
Description
`class`
`CannotReadScriptException`
Thrown by `ScriptUtils` if an SQL script cannot be read.
`class`
`ScriptParseException`
Thrown by `ScriptUtils` if an SQL script cannot be properly parsed.
`class`
`ScriptStatementFailedException`
Thrown by `ScriptUtils` if a statement in an SQL script failed when executing it against the target database.
`class`
`UncategorizedScriptException`
Thrown when we cannot determine anything more specific than "something went wrong while processing an SQL script": for example, a `SQLException` from JDBC that we cannot pinpoint more precisely.
Methods in org.springframework.jdbc.datasource.init that throw ScriptException
Modifier and Type
Method
Description
`void`
ResourceDatabasePopulator.`execute(DataSource dataSource)`
Execute this `ResourceDatabasePopulator` against the given `DataSource`.
`static void`
ScriptUtils.`executeSqlScript(Connection connection, org.springframework.core.io.Resource resource)`
Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.
`static void`
ScriptUtils.`executeSqlScript(Connection connection, org.springframework.core.io.support.EncodedResource resource)`
Execute the given SQL script using default settings for statement separators, comment delimiters, and exception handling flags.
`static void`
ScriptUtils.`executeSqlScript(Connection connection, org.springframework.core.io.support.EncodedResource resource, boolean continueOnError, boolean ignoreFailedDrops, String[] commentPrefixes, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter)`
Execute the given SQL script.
`static void`
ScriptUtils.`executeSqlScript(Connection connection, org.springframework.core.io.support.EncodedResource resource, boolean continueOnError, boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter)`
Execute the given SQL script.
`void`
CompositeDatabasePopulator.`populate(Connection connection)`
`void`
DatabasePopulator.`populate(Connection connection)`
Populate, initialize, or clean up the database using the provided JDBC connection.
`void`
ResourceDatabasePopulator.`populate(Connection connection)`
Populate, initialize, or clean up the database using the provided JDBC connection.