CassandraExceptionTranslator wrong order fix
This commit is contained in:
@@ -70,14 +70,14 @@ public class CassandraExceptionTranslator implements PersistenceExceptionTransla
|
||||
*/
|
||||
public DataAccessException translateExceptionIfPossible(RuntimeException x) {
|
||||
|
||||
if (!(x instanceof DriverException)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (x instanceof DataAccessException) {
|
||||
return (DataAccessException) x;
|
||||
}
|
||||
|
||||
if (!(x instanceof DriverException)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Remember: subclasses must come before superclasses, otherwise the
|
||||
// superclass would match before the subclass!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user