NativeException

public abstract class NativeException extends RuntimeException

Abstract native exception class.

Implement this to support new kinds of native exceptions.

Fields

peer

protected NativeObject peer

The native exception itself.

Constructors

NativeException

protected NativeException(NativeObject peer)

Construct a NativeException object from a native exception.

Parameters:
  • peer – The native peer of the exception.

Methods

getMessage

public abstract String getMessage()

Returns the description of the exception.

Returns:The description of the exception.

getNativeException

public NativeObject getNativeException()

Returns the native exception.

Returns:The native exception.