title: How can I determine why onFailure is triggered in GWT-RPC?
body: <p>I have a project that does 2 RPC calls and then saves the data that the user provided in tha datastore. The first RPC call works ok, but from the second I always recieve the <code>onFailure()</code> message. How can I determine why the <code>onFailure()</code> is triggered? I tried <code>caught.getCause()</code> but it doesn't return anything.</p>
  
  <pre class="lang-java prettyprint-override"><code>feedbackService.saveFeedback(email,studentName,usedTemplates,
      new AsyncCallback&lt;String&gt;() {
  
      public void onFailure(Throwable caught) {
          // Show the RPC error message to the user
          caught.getCause();
          Window.alert("Failure!");
      }
  
      public void onSuccess(String result) {
          Window.alert("Saved!");
      }
  });
  </code></pre>