SPRNET-1566 Return exception instead of throw
SPRNET-1566 Spring.Data.Support.FallbackExceptionTranslator.Translate() should return an exception, not throw one
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Spring.Data.Support
|
||||
/// </returns>
|
||||
public DataAccessException Translate(string task, string sql, Exception exception)
|
||||
{
|
||||
throw new UncategorizedAdoException(task, sql, "<no error code>", exception);
|
||||
return new UncategorizedAdoException(task, sql, "<no error code>", exception);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user