Print exception in MethodHandleHelper (#2097)

print exception caused by xyz
This commit is contained in:
Lennart Lösche 2023-01-14 02:00:56 +01:00 committed by GitHub
parent bdbbb7cb9c
commit d0b274249c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ final class MethodHandleHelper {
return new DefaultFieldAccessor(field, setter, getter, staticField);
} catch (IllegalAccessException | NoSuchFieldException exception) {
// NoSuchFieldException can never happen, the field always exists
throw new IllegalStateException("Unable to access field " + field);
throw new IllegalStateException("Unable to access field " + field, exception);
}
}