Class OutOfNativeMemoryError

All Implemented Interfaces:
Serializable

public class OutOfNativeMemoryError extends OutOfMemoryError
A special OutOfMemoryError indicating that a JNI call terminated with a return code showing that a memory allocation failed. Thus it is possible to distinguish OutOfMemoryErrors within Java and in the native layer.
See Also:
  • Constructor Details

    • OutOfNativeMemoryError

      public OutOfNativeMemoryError()
      default constructor for this error.
    • OutOfNativeMemoryError

      public OutOfNativeMemoryError(String message)
      Constructor with message as parameter that shows info about the error or gives a hint to the origin.
      Parameters:
      message - A message describing the cause of the Error