Throw specific exception if input buffer is too small
This potentially allows a caller to resize their buffers to take into account the required size. It's kept as an IllegalStateException, since most use cases where it's thrown still reflect invalid states, and since making it a checked exception requires marking a lot of methods with throws clauses. PiperOrigin-RevId: 351216968
Showing
with
28 additions
and
4 deletions
Please
register
or
sign in
to comment