Class SecpResult.Err<T>
java.lang.Object
org.bitcoinj.secp.SecpResult.Err<T>
- Type Parameters:
T- type of the successful result
- All Implemented Interfaces:
SecpResult<T>
- Enclosing interface:
SecpResult<T>
An error result, with an
int error code in code().-
Nested Class Summary
Nested classes/interfaces inherited from interface SecpResult
SecpResult.Err<T>, SecpResult.Ok<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SecpResult
get, get
-
Constructor Details
-
Err
public Err(int code) Construct an error result from an error code- Parameters:
code- error code
-
-
Method Details
-
code
public int code()Get the error code- Returns:
- error code
-