IntrospectionPartError class final

The error thrown when code needs a part of an introspected class that its description leaves out.

The message names the class and the part and says what to do: the build described only what it saw used, so the class is used somewhere it did not see (a value cast to Object, a class that only a plugin reads); @Introspected() on the class describes all of it.

// Book is only read in (a request body), then written out by hand:
// Bad state: Book is described without its getters, but it is written
// out as JSON. The build described only what it saw used, and did not
// see that: add @Introspected() to Book.

Spring (Java): no counterpart; Java reflection always sees everything.

Inheritance

Constructors

IntrospectionPartError(Type beanType, IntrospectionPart part, String use)
beanType is described without part; use says what needs it, a clause that follows "but" (it is written out as JSON).

Properties

beanType → Type
The class whose description lacks part.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
part → IntrospectionPart
The part that is needed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited