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
-
- Object
- Error
- StateError
- IntrospectionPartError
Constructors
- IntrospectionPartError(Type beanType, IntrospectionPart part, String use)
-
beanTypeis described withoutpart;usesays 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