From: <ma...@us...> - 2011-05-04 19:25:03
|
Revision: 3524 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3524&view=rev Author: matzon Date: 2011-05-04 19:24:57 +0000 (Wed, 04 May 2011) Log Message: ----------- excessively verbose exception description added to lower support requests :) Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/BufferChecks.java Modified: trunk/LWJGL/src/java/org/lwjgl/BufferChecks.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/BufferChecks.java 2011-05-01 00:09:43 UTC (rev 3523) +++ trunk/LWJGL/src/java/org/lwjgl/BufferChecks.java 2011-05-04 19:24:57 UTC (rev 3524) @@ -159,7 +159,7 @@ * 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) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |