$$f(\omega,u):=\frac1{\omega+iu}$$ where $i$ is the imaginary unit number. We see that the integral of a Fourier transform $$\int_1^\infty du\int_{-\infty}^\infty d\omega\,f(\omega,u)\,e^{-i\omega x}=2\pi i\int_1^\infty du\,e^{-ux}=2\pi i\frac{e^{-x}}x$$ for $u>0$, $x>0$, while interchanging the order of integration, $$\int_{-\infty}^\infty d\omega \,e^{-i\omega x}\int_1^\infty duf(\omega,u)$$ is not even integrable in the first integration. Is there a theory, say distribution or generalized function, to treat this kind of double integral involving the Fourier transform?
On the other hand, if we integrate by part the Fourier transform $$\int_{-\infty}^\infty d\omega\,f(\omega,u)\,e^{-i\omega x}=\frac1 {ix}\int_{-\infty}^\infty d\omega\,\partial_\omega f(\omega,u)\,e^{-i\omega x},$$ $$\partial_\omega f(\omega,u)=-\frac1{(\omega+iu)^2}.$$ We interchange the order of integration and obtain a finite value $$\int_1^\infty du\,\partial_{iu} f(\omega,u)=if(\omega,u=1)=\frac i{\omega+i}$$ which is already shown to be Fourier transformable. It is easy to check the two orders of integration agree.
How do we turn this trick into a coherent theory? Does, say tempered distribution, help?