[infinispan-dev] use %s syntax for formatting exception messages

Manik Surtani manik at jboss.org
Tue Mar 15 13:13:21 EDT 2011


Yeah, I currently do:

	throw new ConfigurationException(String.format("you 're not allowed to use %s and %s together", that, other));

but we could overload the constructor of CacheException ... 

On 15 Mar 2011, at 16:15, Mircea Markus wrote:

> Hi,
> 
> Not a biggie, but I think it would be nice to use this nicer syntax for exception messages, e.g.
> throw new ConfigurationException("you 're not allowed to use %s and %s together", that, other);
> wdyt?
> 
> Cheers,
> Mircea 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org






More information about the infinispan-dev mailing list