I am using a StandardSetController with Database.getQueryLocator to call my query. I am wondering what can go wrong in this code snippet, i.e. what is the Exception that has a probability of being thrown? It does not throw exception when there is no data. If I wrap it in a try catch block, apart from the generic "Exception", what other catch blocks do I write for more specific Exceptions?
setCon = new ApexPages.StandardSetController( Database.getQueryLocator( [SELECT Id, Name, (SELECT Id, CaseNumber, Subject, Contact.Name, IsClosed, Reason FROM Cases) FROM Account WHERE BillingCity = :account.BillingCity AND Industry = :account.Industry ] ));