Devi catturare l'eccezione SQLException