gissuebot
gissuebot
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1645#c11) posted by **[email protected]** on 2014-06-27 at 02:40 AM_ --- Okay. Whether it's possible to use Guice was what I was curious to know. I think you have a...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c1) posted by **electrum** on 2013-04-23 at 10:40 PM_ --- Another benefit of this over using checkArgument(false) is that the compiler knows it always throws, allowing use in more...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c2) posted by **wasserman.louis** on 2013-04-23 at 10:44 PM_ --- Additional handy fact: the Preconditions.format implementation is GWT-compatible; String.format is not. If we do decide to do this, it...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c3) posted by **jysjys1486** on 2013-04-23 at 11:23 PM_ --- IllegalArgumentException -- illegalArgument(...) IllegalStateException -- illegalState(...) NullPointerException -- nullPointer(...) -- illegalNull(...) IndexOutOfBoundsException -- indexOutOfBounds(...) -- outOfBounds(...) AssertionError -- assertionFailed(...)...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c4) posted by **electrum** on 2013-04-24 at 12:36 AM_ --- The names could be the same as the exception: ``` throw illegalArgumentException(e, "Invalid authority '%s' found in URI '%s',...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c5) posted by **electrum** on 2013-04-24 at 12:37 AM_ --- Related, having a public version of the Preconditions.format() method would be handy.
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c6) posted by **wasserman.louis** on 2013-04-24 at 01:04 AM_ --- > Related, having a public version of the Preconditions.format() method would be handy. How would that be different from...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c7) posted by **electrum** on 2013-04-24 at 02:38 AM_ --- The big difference is that it's safe if you mess up the format string, which is likely for unexpected...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c8) posted by **ogregoire** on 2013-04-24 at 09:27 AM_ --- Well, it adds readability. Because this is the real code that we use: throw new IllegalArgumentException(String.format("Invalid authority '%s' found...
_[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1382#c9) posted by **phwendler** on 2013-04-26 at 08:48 AM_ --- I like the whole idea, and specifically I think removing the "Exception" from the method name is nice and...