Class ThrowingProviderBinder.Result

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    ThrowingProviderBinder

    static class ThrowingProviderBinder.Result
    extends java.lang.Object
    implements java.io.Serializable
    Represents the returned value from a call to CheckedProvider.get(). This is the value that will be scoped by Guice.
    • Field Detail

      • value

        private final java.lang.Object value
      • exception

        private final java.lang.Exception exception
    • Constructor Detail

      • Result

        private Result​(java.lang.Object value,
                       java.lang.Exception exception)
    • Method Detail

      • getOrThrow

        public java.lang.Object getOrThrow()
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception