Amazon.Util.Internal.InternalSDKUtils.SafeExecute C# (CSharp) Méthode

SafeExecute() public static méthode

public static SafeExecute ( System.Action action ) : void
action System.Action
Résultat void
        public static void SafeExecute(Action action)
        {
            try
            {
                action();
            }
            catch (Exception exception)
            {
                // Catch any unhandled exceptions from the user callback 
                // and log it. 
                _logger.Error(exception,
                    "An unhandled exception was thrown from the callback method {0}.",
                    action.Method.Name);
            }
        }