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 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.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    On override, indicates whether to use the C++ noexcept specifier or not.
  • Element Details

    • value

      boolean value
      On override, indicates whether to use the C++ noexcept specifier or not.
      Default:
      false