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:
Mattias Öhrn
2014-02-27 08:24:27 +01:00
parent a74653215f
commit 36d58efe09

View File

@@ -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);
}
}
}