Given this function:
Code snippet
929 public function checkConnection() {
930 try
931 {
932 var conn = DriverManager.getConnection(url)
933 // logic here
934 }
935 catch (e : Exception)
936 {
937 // handle exception
938 }
939 }
What action will align the function with Gosu best practices?
Submit