title: how to get Exception details from CFC file
body: <p>I have a Function in CFC file, which will be called from .cfm file like below</p>
  
  <pre><code> &lt;cffunction name="cftest" access="public" returntype="query" output="true" hint="Function returns Records"&gt;
  
        &lt;cfquery name="qryTest" datasource="DBTest"&gt;
                  select * from emp_tab;
         &lt;/cfquery&gt;
  
      &lt;cfreturn selectRecordsResultSet /&gt;
  
   &lt;/cffunction&gt;
  </code></pre>
  
  <p>How can I handle DB Exception using cftry? as this is returning Query, Is it possible to catch the DB Exception and pass the Details to the other page from where it is called?</p>
  
  <p>Thanks</p>