Revision: 1417
Author: sberlin
Date: Sun Nov 21 07:25:20 2010
Log: Edited wiki page ProviderBindings through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1417
Modified:
/wiki/ProviderBindings.wiki
=======================================
--- /wiki/ProviderBindings.wiki Mon Mar 2 21:06:03 2009
+++ /wiki/ProviderBindings.wiki Sun Nov 21 07:25:20 2010
@@ -32,3 +32,6 @@
}
}}}
If your providers are complex, be sure to test them!
+
+===Throwing Exceptions===
+Guice does not allow exceptions to be thrown from Providers. The Provider
interface does not allow for checked exception to be
thrown. !RuntimeExceptions may be wrapped in a !ProvisionException
or !CreationException and may prevent your Injector from being created. If
you need to throw an exception for some reason, you may want to use the
[ThrowingProviders ThrowingProviders extension].
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.