C# – try{}catch(Exception ex){} – do NOT caught any exception [duplicate]
问题 This question already has answers here : Async exception handling with void (2 answers) Closed 2 years ago . short version, this method: public override async void MethodWithException() { throw new Exception("any EXCEPTION type and format will be skipped by outer try-catch block"); } is not caught by this block ("catch" is skipped): try { realClassFromAbstractObject.MethodWithException(); Console.WriteLine("Output in the console – NOT POSSIBLE but true!"); } catch (Exception exception) { /