+ it ops code error Why is it better to throw an exception rather than return an error code? Legacy error handling tends to follow the method that all functions return a code depending on success/failure. You would check this code and handle (if an error) appropriately. Modern programming wono | tweet Add comment Do you want to delete? YesNo