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 Details

    • DatabaseErrorMessageConverter

      public DatabaseErrorMessageConverter()
  • Method Details

    • 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. see DatabaseList.getDatabases() for full list.
      exception - the sql exception.
      Returns:
      an error message key for the title of the error message.