System.Linq.Expressions.Error.RethrowRequiresCatch C# (CSharp) Méthode

RethrowRequiresCatch() static private méthode

InvalidOperationException with message like "Rethrow statement is valid only inside a Catch block."
static private RethrowRequiresCatch ( ) : Exception
Résultat Exception
        internal static Exception RethrowRequiresCatch()
        {
            return new InvalidOperationException(Strings.RethrowRequiresCatch);
        }
        /// <summary>
Error