public final class AlgoFailure extends AlgoResponse
Modifier and Type | Field and Description |
---|---|
AlgorithmException |
error |
Constructor and Description |
---|
AlgoFailure(AlgorithmException error) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
as(java.lang.Class<T> returnClass)
Convert the result to a specific class
|
protected <T> T |
as(java.lang.reflect.Type returnType)
Convert the result to a specific type
|
Metadata |
getMetadata() |
boolean |
isFailure() |
boolean |
isSuccess() |
as, toString
public AlgorithmException error
public AlgoFailure(AlgorithmException error)
public boolean isSuccess()
isSuccess
in class AlgoResponse
public boolean isFailure()
isFailure
in class AlgoResponse
public Metadata getMetadata() throws AlgorithmException
getMetadata
in class AlgoResponse
AlgorithmException
protected <T> T as(java.lang.Class<T> returnClass) throws AlgorithmException
AlgoResponse
as
in class AlgoResponse
T
- the type that the response will be deserialized intoreturnClass
- the class used by the deserializer (should correspond with T)AlgorithmException
- the error, if this is AlgoFailureprotected <T> T as(java.lang.reflect.Type returnType) throws AlgorithmException
AlgoResponse
as
in class AlgoResponse
T
- the type that the response will be deserialized intoreturnType
- the type used by the deserializer (should correspond with T)AlgorithmException
- the error, if this is AlgoFailure