Interface OreResponse<V>

    • Method Detail

      • success

        @NotNull
        static <T> @NotNull OreResponse.Success<T> success​(@Nullable
                                                           T value)
      • failure

        @NotNull
        static <T> @NotNull OreResponse.Failure<T> failure​(int responseCode,
                                                           @Nullable
                                                           @Nullable java.lang.String errorMessage)
      • wasSuccessful

        boolean wasSuccessful()
      • responseCode

        int responseCode()
      • asSuccessOrThrow

        <E extends java.lang.Throwable> OreResponse.Success<V> asSuccessOrThrow​(java.util.function.Function<java.lang.String,​E> errorProvider)
                                                                         throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable