UserInterface must be compiled with -fexceptions.