Class OreResponse.Success<T>
java.lang.Object
org.spongepowered.gradle.ore.internal.OreResponse.Success<T>
- All Implemented Interfaces:
OreResponse<T>
- Enclosing interface:
- OreResponse<V>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.gradle.ore.internal.OreResponse
OreResponse.Failure<T>, OreResponse.Reauthenticate<T>, OreResponse.Success<T> -
Method Summary
Modifier and TypeMethodDescription<E extends Throwable>
OreResponse.Success<T>asSuccessOrThrow(Function<String, E> errorProvider) intvalue()boolean
-
Method Details
-
value
-
wasSuccessful
public boolean wasSuccessful()- Specified by:
wasSuccessfulin interfaceOreResponse<T>
-
responseCode
public int responseCode()- Specified by:
responseCodein interfaceOreResponse<T>
-
asSuccessOrThrow
public <E extends Throwable> OreResponse.Success<T> asSuccessOrThrow(Function<String, E> errorProvider) - Specified by:
asSuccessOrThrowin interfaceOreResponse<T>
-