ios nsurlsession swift

iOS Swift : How to find if an NSURLSession has timed out

In the iOS app I am currently building, I am trying to show a message to the user when the session has timed out. I read the documentation for NSURLSessionDelegate but couldn’t find out any method for letting me know if the session has timed out. How do I go about doing this? Any help is appreciated.