UnknownError

  • UnknownError is a subclass of VirtualMachineError signaling a critical, unexpected issue within the Java Virtual Machine.

  • It is thrown when the JVM encounters a serious exception that it cannot identify or handle.

  • This error can be constructed with or without a detailed message providing more context about the encountered issue.

  • Inheriting from Throwable, UnknownError provides methods for stack trace analysis and error handling.

public class UnknownError extends VirtualMachineError

Thrown when an unknown but serious exception has occurred in the Java Virtual Machine.

Public Constructor Summary

UnknownError()
Constructs an UnknownError with no detail message.
UnknownError(String s)
Constructs an UnknownError with the specified detail message.

Inherited Method Summary

Public Constructors

public UnknownError ()

Constructs an UnknownError with no detail message.

public UnknownError (String s)

Constructs an UnknownError with the specified detail message.

Parameters
s the detail message.