4.67. kink/javahost/PROXY_THROW_RESULT

PROXY_THROW_RESULT mod provides exception throwing result of a Java dynamic proxy.

See kink/javahost/JAVA_PROXY for Java dynamic proxies.

4.67.1. type proxy_throw_result

A proxy_throw_result val is a val, which represents a Java exception within an action of a Java dynamic proxy. Ptr.thrown

`thrown` returns the Java exception wrapped by the `Ptr`.

The result of `thrown` is a java val, whose static type is java.lang.Throwable.

4.67.2. PROXY_THROW_RESULT.new(Exception_java_val)

`new` makes a proxy_throw_result val which wraps `Exception_java_val`.


• `Exception_java_val` must be a java val, whose object reference is an instance of java.lang.Throwable.

4.67.3. PROXY_THROW_RESULT.is?(Val)

`is?` returns whether `Val` is a proxy_throw_result val.