@Beta public interface Produced<T>
T
,
or an exception that was thrown during that production. For any type T
that can be
injected, you can also inject Produced<T>
, which enables handling of any exceptions that
were thrown during the production of T
.
For example:
{@code
T get() throws ExecutionException
ExecutionException
- if the production threw an exceptionCopyright © 2015 Google, Inc.. All rights reserved.