AbstractMethodError

  • AbstractMethodError is thrown when an application tries to call an abstract method at runtime due to incompatible class changes since the last compilation.

  • This error is typically caught during compilation but can occur at runtime if a class definition has been altered.

  • It extends IncompatibleClassChangeError and provides constructors to create instances with or without a detailed message.

  • AbstractMethodError inherits various methods from Throwable for handling exceptions, such as printStackTrace and getMessage.

public class AbstractMethodError extends IncompatibleClassChangeError

Thrown when an application tries to call an abstract method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled.

Public Constructor Summary

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

Inherited Method Summary

Public Constructors

public AbstractMethodError ()

Constructs an AbstractMethodError with no detail message.

public AbstractMethodError (String s)

Constructs an AbstractMethodError with the specified detail message.

Parameters
s the detail message.