Skip to content

Commit 18329a8

Browse files
committed
Document possible exceptions
1 parent 3bfdc2d commit 18329a8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Java.Interop/Documentation/Java.Interop/JavaPeerableExtensions.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,20 @@
5656
used to associated a managed type to a Java type.
5757
</block>
5858
</remarks>
59+
<exception cref="T:System.ArgumentException">
60+
<para>
61+
The Java peer type for <typeparamref name="TResult" /> could not be found.
62+
</para>
63+
</exception>
64+
<exception cref="T:System.NotSupportedException">
65+
<para>
66+
The type <typeparamref name="TResult" /> or a <i>Invoker type</i> for
67+
<typeparamref name="TResult" /> does not provide an
68+
<i>activation constructor</i>, a constructor with a singature of
69+
<c>(ref JniObjectReference, JniObjectReferenceOptions)</c> or
70+
<c>(IntPtr, JniHandleOwnership)</c>.
71+
</para>
72+
</exception>
5973
<seealso cref="M:Java.Interop.JavaPeerableExtensions.JavaAs``1(Java.Interop.IJavaPeerable)" />
6074
</member>
6175
<member name="M:JavaAs">
@@ -88,6 +102,20 @@
88102
used to associated a managed type to a Java type.
89103
</block>
90104
</remarks>
105+
<exception cref="T:System.ArgumentException">
106+
<para>
107+
The Java peer type for <typeparamref name="TResult" /> could not be found.
108+
</para>
109+
</exception>
110+
<exception cref="T:System.NotSupportedException">
111+
<para>
112+
The type <typeparamref name="TResult" /> or a <i>Invoker type</i> for
113+
<typeparamref name="TResult" /> does not provide an
114+
<i>activation constructor</i>, a constructor with a singature of
115+
<c>(ref JniObjectReference, JniObjectReferenceOptions)</c> or
116+
<c>(IntPtr, JniHandleOwnership)</c>.
117+
</para>
118+
</exception>
91119
<seealso cref="P:Java.Interop.JavaPeerableExtensions.TryJavaCast``1(Java.Interop.IJavaPeerable)" />
92120
</member>
93121
</docs>

0 commit comments

Comments
 (0)