@Documented @Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface NoException
Generator
assumes all native functions may throw exceptions.
This way, any C++ exception thrown from a function gets caught and translated
into a RuntimeException
. However, this adds some overhead and requires
additional support from the compiler. Annotating a class or a method with this
annotation indicates that none of the enclosed functions can throw exceptions,
and need not be included in a try{ ... }
block.Generator
Copyright © 2020. All rights reserved.