but I do not want to suppress errors that are related to infrastructure problems, i.e. "could not open file..."
The server doesn’t classify the errors it emits into scope, “application errors” and ”infrastructure errors”, or otherwise. The only classification is severity.
It does include an SQL Error Code that you could, in post-processing, act on.
David J.