在SQL CLR存储过程中抛出异常

Aar*_*els 6 c# sql-server clr stored-procedures exception

从SQL CLR存储过程中抛出异常是一种好的设计吗?由于我们处于SQL Server的上下文中,是否需要进行任何特殊考虑?

这是不好的设计吗?

[Microsoft.SqlServer.Server.SqlProcedure]
public static void MyStoredProcedure(string foo)
{
    if (string.IsNullOrEmpty(foo))
    {
        throw new ArgumentNullException("foo");
    }
}
Run Code Online (Sandbox Code Playgroud)

换句话说,是否应该将例外情况传达给来电者?