I have seen many ways of handling program critical errors in LWJGL. Such a situation would be the GLFW window handle of glfwCreateWindow being zero, for example, because width or height are <=0.
Personally, I’ve always thrown exceptions at this point. I’ve also seen System.exit coupled with an error message. Recently someone suggested assertions to me.
What is the most conventional and useful way, in your opinion?