blob: daa46a53810fb9287ec5af2a9eaca1da59c07de8 [file] [log] [blame]
<html devsite="true">
<head>
<title>Fragment.InstantiationException</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<h1>Fragment.InstantiationException</h1>
{% setvar page_path %}androidx/fragment/app/Fragment.InstantiationException.html{% endsetvar %}
{% setvar can_switch %}1{% endsetvar %}
{% include "reference/_java_switcher2.md" %}
<p>
<pre>public class Fragment.InstantiationException</pre>
</p>
<hr>
<p>Thrown by <code><a href="/reference/androidx/fragment/app/FragmentFactory.html#instantiate(java.lang.ClassLoader,java.lang.String)">FragmentFactory#instantiate(ClassLoader, String)</a></code> when there is an instantiation failure.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<thead>
<tr>
<th colspan="2"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div><code><a href="/reference/androidx/fragment/app/Fragment.InstantiationException.html#InstantiationException(java.lang.String,java.lang.Exception)">InstantiationException</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a>&nbsp;<a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;msg,&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="https://developer.android.com/reference/java/lang/Exception.html">Exception</a>&nbsp;cause)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive" id="inhmethods">
<thead>
<tr>
<th colspan="2"><h3>Inherited methods</h3></th>
</tr>
</thead>
<tbody>
<tr>
<td><devsite-expandable><span class="expand-control">From class <a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a></span>
<div class="devsite-table-wrapper">
<table class="responsive">
<tbody>
<tr>
<td><code>&nbsp;synchronized&nbsp;final void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)">addSuppressed</a>(<a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a>&nbsp;exception)</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized <a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace()">fillInStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized <a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getCause()">getCause</a>()</code></div>
</td>
</tr>
<tr>
<td><code> <a href="https://developer.android.com/reference/java/lang/String.html">String</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage()">getLocalizedMessage</a>()</code></div>
</td>
</tr>
<tr>
<td><code> <a href="https://developer.android.com/reference/java/lang/String.html">String</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getMessage()">getMessage</a>()</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getOurStackTrace()">getOurStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td><code> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()">getStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized&nbsp;final <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a>&gt;</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed()">getSuppressed</a>()</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized <a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)">initCause</a>(<a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a>&nbsp;cause)</code></div>
</td>
</tr>
<tr>
<td><code> void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#printEnclosedStackTrace(java.lang.Throwable.PrintStreamOrWriter,java.lang.StackTraceElement[],java.lang.String,java.lang.String,java.util.Set&amp;lt;java.lang.Throwable&amp;gt;)">printEnclosedStackTrace</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/java/lang/Throwable.PrintStreamOrWriter.html">Throwable.PrintStreamOrWriter</a>&nbsp;s,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;&nbsp;enclosingTrace,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;caption,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;prefix,<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/java/util/Set.html">Set</a>&lt;<a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a>&gt;&nbsp;dejaVu<br>)</code></div>
</td>
</tr>
<tr>
<td><code> void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()">printStackTrace</a>()</code></div>
</td>
</tr>
<tr>
<td><code> void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#readObject(java.io.ObjectInputStream)">readObject</a>(<a href="https://developer.android.com/reference/java/io/ObjectInputStream.html">ObjectInputStream</a>&nbsp;s)</code></div>
</td>
</tr>
<tr>
<td><code> void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])">setStackTrace</a>(<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://developer.android.com/reference/java/lang/StackTraceElement.html">StackTraceElement</a>&gt;&nbsp;stackTrace)</code></div>
</td>
</tr>
<tr>
<td><code> <a href="https://developer.android.com/reference/java/lang/String.html">String</a></code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#toString()">toString</a>()</code></div>
</td>
</tr>
<tr>
<td><code> int</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#validateSuppressedExceptionsList(java.util.List&amp;lt;java.lang.Throwable&amp;gt;)">validateSuppressedExceptionsList</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://developer.android.com/reference/java/util/List.html">List</a>&lt;<a href="https://developer.android.com/reference/java/lang/Throwable.html">Throwable</a>&gt;&nbsp;deserSuppressedExceptions<br>)</code></div>
</td>
</tr>
<tr>
<td><code>&nbsp;synchronized void</code></td>
<td width="100%">
<div><code><a href="https://developer.android.com/reference/java/lang/Throwable.html#writeObject(java.io.ObjectOutputStream)">writeObject</a>(<a href="https://developer.android.com/reference/java/io/ObjectOutputStream.html">ObjectOutputStream</a>&nbsp;s)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
</devsite-expandable> </td>
</tr>
</tbody>
</table>
</div>
<h2>Public constructors</h2>
<div><a name="InstantiationException(java.lang.String, java.lang.Exception)"></a><a name="InstantiationException-java.lang.String-java.lang.Exception-"></a>
<h3 class="api-name" id="InstantiationException(java.lang.String,java.lang.Exception)">InstantiationException</h3>
<pre class="api-signature no-pretty-print">public&nbsp;<a href="/reference/androidx/fragment/app/Fragment.InstantiationException.html#InstantiationException(java.lang.String,java.lang.Exception)">InstantiationException</a>(@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a>&nbsp;<a href="https://developer.android.com/reference/java/lang/String.html">String</a>&nbsp;msg,&nbsp;@<a href="/reference/androidx/annotation/Nullable.html">Nullable</a>&nbsp;<a href="https://developer.android.com/reference/java/lang/Exception.html">Exception</a>&nbsp;cause)</pre>
</div>
</body>
</html>