title: Can we recover from UncategorizedSQLException?
body: <p>I'm basically working with dynamic data where I need to insert, update, or delete rows without having much control over the columns. The column names are selected dynamically based on the available data. For most cases, we have stored the read-only columns and avoid writing data to those specific columns. But there might still be a case where we might accidentally write data to a read-only column. For instance, here's an exception:</p>
  <blockquote>
  <p>PreparedStatementCallback; uncategorized SQLException for SQL [UPDATE &quot;Database&quot;.&quot;Schema&quot;.&quot;Table&quot; SET &quot;First Name&quot; = ?, &quot;Last Name&quot; = ?, &quot;Create Date&quot; = ? WHERE id = ?]; SQL state [HY000]; error code [0]; Column [Create Date] could not be updated. This column is read-only.</p>
  </blockquote>
  <p>Exceptions are caught easily, but what I want to know is, if there's a way to recover from these exceptions?</p>
  <pre class="lang-java prettyprint-override"><code>    } catch (UncategorizedSQLException e) {
        String cause = e.getMessage();
        if (cause.contains(&quot;This column is read-only&quot;)) {
          // TODO: Recover Here
        } 
      }
  </code></pre>
  <p>I know that the problem is with the <code>Create Date</code> column, can I just remove that part of the query and run the statement again?</p>