MalformedParameterizedTypeException

  • MalformedParameterizedTypeException is a runtime exception signaling an issue with the structure of a parameterized type, such as an incorrect number of type arguments.

  • It's thrown by reflective methods attempting to instantiate a malformed parameterized type.

  • This exception inherits methods from RuntimeException, Throwable, and Object, providing functionalities for error handling and object manipulation.

  • MalformedParameterizedTypeException has a public constructor with no arguments.

public class MalformedParameterizedTypeException extends RuntimeException

Thrown when a semantically malformed parameterized type is encountered by a reflective method that needs to instantiate it. For example, if the number of type arguments to a parameterized type is wrong.

Public Constructor Summary

Inherited Method Summary

Public Constructors

public MalformedParameterizedTypeException ()