dnrajugade / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

RFE [Patch included] add more informational message to StopWatch-Exceptions #1220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When starting an already running Stopwatch (or stopping a not-started one) an 
IllegalStateException is thrown.
The JavaDoc explains why the exception is thworwn. Nevertheless I would find  
it quite useful if I wouldn't just see an IllegalStateException but a more 
informative message like propoesed in the patch, so that the Exception explains 
that an already started Stopwatch should not be started again etc.

Original issue reported on code.google.com by franz.graf on 1 Dec 2012 at 9:35

Attachments:

GoogleCodeExporter commented 9 years ago
Good idea - thanks!

Original comment by kak@google.com on 4 Dec 2012 at 12:18

GoogleCodeExporter commented 9 years ago

Original comment by kak@google.com on 4 Dec 2012 at 12:37

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08