GenericSignatureFormatError

  • GenericSignatureFormatError is thrown when a reflection method encounters an invalid generic signature for a type, method, or constructor.

  • It is a subclass of ClassFormatError and provides two constructors: one default and one accepting a custom error message.

  • This error indicates a problem with the structure of the generic signature attribute within the class file.

  • Developers should review and correct the generic signature to resolve this error.

public class GenericSignatureFormatError extends ClassFormatError

Thrown when a syntactically malformed signature attribute is encountered by a reflective method that needs to interpret the generic signature information for a type, method or constructor.

Public Constructor Summary

GenericSignatureFormatError()
Constructs a new GenericSignatureFormatError.
GenericSignatureFormatError(String message)
Constructs a new GenericSignatureFormatError with the specified message.

Inherited Method Summary

Public Constructors

public GenericSignatureFormatError ()

Constructs a new GenericSignatureFormatError.

public GenericSignatureFormatError (String message)

Constructs a new GenericSignatureFormatError with the specified message.

Parameters
message the detail message, may be null