Package org.bytedeco.javacpp.annotation
Annotation Type NoException
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface NoException
By default,Generator
assumes all native functions may throw exceptions. This way, any C++ exception thrown from a function gets caught and translated into aRuntimeException
. 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 atry{ ... }
block.- See Also:
Generator
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
value
On override, indicates whether to use the C++ noexcept specifier or not.
-