mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-27 13:15:52 +01:00
Print exception in MethodHandleHelper (#2097)
print exception caused by xyz
This commit is contained in:
parent
bdbbb7cb9c
commit
d0b274249c
@ -100,7 +100,7 @@ final class MethodHandleHelper {
|
|||||||
return new DefaultFieldAccessor(field, setter, getter, staticField);
|
return new DefaultFieldAccessor(field, setter, getter, staticField);
|
||||||
} catch (IllegalAccessException | NoSuchFieldException exception) {
|
} catch (IllegalAccessException | NoSuchFieldException exception) {
|
||||||
// NoSuchFieldException can never happen, the field always exists
|
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user