Class DatabaseErrorMessageConverter
- java.lang.Object
-
- com.atlassian.confluence.setup.settings.DatabaseErrorMessageConverter
-
public class DatabaseErrorMessageConverter extends Object
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
Constructors Constructor Description DatabaseErrorMessageConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getMessageKey(@NonNull String database, @NonNull SQLException exception)
Get the error message title based on what the database and error.
-
-
-
Method Detail
-
getMessageKey
public static String getMessageKey(@NonNull String database, @NonNull SQLException exception)
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.
-
-