Class NativeException

  • All Implemented Interfaces:
    Serializable

    public class NativeException
    extends Exception
    Exception raised by a native-method handler, carrying the internal name of the guest exception class to materialize.
    See Also:
    Serialized Form
    • Constructor Detail

      • NativeException

        public NativeException​(String exceptionClass,
                               String message)
        Creates an exception to be materialized as the given guest class.
        Parameters:
        exceptionClass - internal name of the guest exception class
        message - the detail message, may be null
    • Method Detail

      • getExceptionClass

        public String getExceptionClass()
        Returns:
        the exception class