excessively verbose exception description added to lower support requests :)

This commit is contained in:
Brian Matzon 2011-05-04 19:24:57 +00:00
parent 4015ae10a7
commit 4b0cbedc64
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ public class BufferChecks {
* This is a separate call to help inline checkBufferSize.
*/
private static void throwBufferSizeException(Buffer buf, int size) {
throw new IllegalArgumentException("Number of remaining buffer elements is " + buf.remaining() + ", must be at least " + size);
throw new IllegalArgumentException("Number of remaining buffer elements is " + buf.remaining() + ", must be at least " + size + ". Because at most " + size + " elements can be returned, a buffer with at least " + size + " elements is required, regardless of actual returned element count");
}
private static void throwBufferSizeException(PointerBuffer buf, int size) {