title: Get the error code from Throwable - Android
body: <p>How can I get the error code from the <a href="https://developer.android.com/reference/java/lang/Throwable.html" rel="nofollow noreferrer">Throwable</a>?</p>
  <pre><code>public void onFailure(Throwable exception) {
  
  }
  </code></pre>
  <p>I saw that we can get the error messages, <code>LocalizedMessage</code>, etc.</p>