title: Instantiating a java if statement referencing an error
body: <p>How would one write an "if statement" that checks if an error occurred in a method if so it would start a separate method  that deals with the error otherwise open the next method </p>