title: GWT Product Mode AssertionException Catch ? HOW?
body: <p>in product mode in GWT the assertion is not available which is good, but because of a GXT error I get an assertion error and because the necessary classes are not available all I get is a com.google.gwt.core.client.JavaScriptException error in the browser and it's not enough to properly debug it. The reason why I need this is because in my custom framework I created a class that's responsible for error handling</p>
  
  <pre><code>            GWT.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
              @Override
              public void onUncaughtException(Throwable e) {
                  addError(e);
              }
          });
  
              public void addError(Throwable ex)
              {
                  if(!ex.getClass().equals(AssertionError.class))//(ex instanceof AssertionError))
                  {
                      this.addError(ex, true);
                  }
              }
  </code></pre>
  
  <p>as you can see I've tried to capture the error but I'm unable to in production mode. I somehow need to be able to sepcify the exception so I can filter it. All errors get into the logs and I don't want these errors to appear there</p>
  
  <p>GXT Error => <a href="http://www.sencha.com/forum/showthread.php?171409-RowEditor-AssertionError&amp;p=709005" rel="nofollow">http://www.sencha.com/forum/showthread.php?171409-RowEditor-AssertionError&amp;p=709005</a></p>
  
  <p>thanks help</p>
  
  <p>By Egg</p>