You handle the result codes you know what to do with, and everything that remains means your program should explode immediately.