Throwable Result Type
The throwable result types notify the user whether the throwable was caught during the construction of the reflection check where it looks up each class/field, or during the execution, where it looks up or assigns new values to properties. As the exceptions overlap, we need to distinguish the two types with a different wrapper.
Inheritors
Types
Link copied to clipboard
class ConstructionThrowable<E : Class<out Throwable>>(val throwableClass: E) : ReflectionCheckReply.ErrorResult.ThrowableResultType<E>
A construction throwable is a throwable that was caught during the construction of a reflection check, e.g. when looking up the classes or fields on which the operations would be performed.
Link copied to clipboard
class ExecutionThrowable<E : Class<out Throwable>>(val throwableClass: E) : ReflectionCheckReply.ErrorResult.ThrowableResultType<E>
An execution throwable is a throwable that was caught during the execution of a specific operation that was requested, e.g. GetFieldModifiers or SetFieldValue.