Class DatabaseErrorMessageConverter
java.lang.Object
com.atlassian.confluence.setup.settings.DatabaseErrorMessageConverter
Converts a database specific message to more human readable message.
Please find the details at https://bulldogwiki.internal.atlassian.com/wiki/display/CBF/SQLException+errorcode+and+keyword.
- Since:
- 6.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMessageKey
(@NonNull String database, @NonNull SQLException exception) Get the error message title based on what the database and error.
-
Constructor Details
-
DatabaseErrorMessageConverter
public DatabaseErrorMessageConverter()
-
-
Method Details
-
getMessageKey
Get the error message title based on what the database and error.- Parameters:
database
- the possible list of databases. seeDatabaseList.getDatabases()
for full list.exception
- the sql exception.- Returns:
- an error message key for the title of the error message.
-