public class UnsupportedDatabaseBackendException extends Exception {
/**
+ * Constructor with only cause
*
- * @param backendType
- */
- public UnsupportedDatabaseBackendException (final String backendType) {
- // Call super constructor
- super(MessageFormat.format("Backend {0} is not supported.", backendType)); //NOI18N
- }
-
- /**
- * Constructor with backend type and cause
- *
- * @param backendType Backend type
* @param cause
*/
- public UnsupportedDatabaseBackendException (final String backendType, final Throwable cause) {
+ public UnsupportedDatabaseBackendException (final Throwable cause) {
// Call super constructor
- super(MessageFormat.format("Backend {0} is not supported.", backendType), cause); //NOI18N
+ super(MessageFormat.format("Backend is not supported: {0}", cause), cause); //NOI18N
}
}