As the title describes, [Exception.StackTrace](https://learn.microsoft.com/en-us/dotnet/api/system.exception.stacktrace?view=net-7.0) does not explain when it could be `null`. [Exception.TargetSite](https://learn.microsoft.com/en-us/dotnet/api/system.exception.targetsite?view=net-7.0) mentions that, if `StackTrace` is `null`, it will be `null`. https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Exception.xml