@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
Modifier and Type | Optional Element and Description |
---|---|
boolean |
value
On override, indicates whether to use the C++ noexcept specifier or not.
|
Copyright © 2023. All rights reserved.