Class OreResponse.Failure<T>

  • All Implemented Interfaces:
    OreResponse<T>
    Enclosing interface:
    OreResponse<V>

    public static final class OreResponse.Failure<T>
    extends java.lang.Object
    implements OreResponse<T>
    • Constructor Detail

      • Failure

        public Failure​(int responseCode,
                       @Nullable
                       @Nullable java.lang.String errorMessage)
    • Method Detail

      • errorMessage

        @Nullable
        public @Nullable java.lang.String errorMessage()
      • asSuccessOrThrow

        public <E extends java.lang.Throwable> OreResponse.Success<T> asSuccessOrThrow​(java.util.function.Function<java.lang.String,​E> errorProvider)
                                                                                throws E extends java.lang.Throwable
        Specified by:
        asSuccessOrThrow in interface OreResponse<T>
        Throws:
        E extends java.lang.Throwable