Class 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 Detail

      • DatabaseErrorMessageConverter

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