I make an interpreter of the Prolog language. The language is based on recursion, and incorrectly written programs often lead to stack overflow. When I ran my interpreter from a JavaFX application, I noticed that JavaFX could detect a StackOverflowError in the stream and process it.
How do you do something like this yourself to determine the StackOverflowError thrown in another thread and process it?
