What is the best approach? Should Key throw an exception or return null? An exception would need to be handled with try/catch by modules that use Key so that the application does not crash, but leaves the possibility for an error message. Returning null is easier (?) for a module to handle, maybe?
What is the best approach? Should Key throw an exception or return null? An exception would need to be handled with try/catch by modules that use Key so that the application does not crash, but leaves the possibility for an error message. Returning null is easier (?) for a module to handle, maybe?