public static enum Protos.Error.ErrorCode extends java.lang.Enum<Protos.Error.ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
paymentchannels.Error.ErrorCode
Enum Constant and Description |
---|
BAD_TRANSACTION
A provided transaction was not in the proper structure
|
CHANNEL_VALUE_TOO_LARGE
for the primary
|
MIN_PAYMENT_TOO_LARGE
too large for the primary
|
NO_ACCEPTABLE_VERSION
formatted or was out of order.
|
OTHER
OTHER = 8; |
SYNTAX_ERROR
Generic error indicating some message was not properly
|
TIME_WINDOW_UNACCEPTABLE
(wrong inputs/outputs, sequence, lock time, signature,
etc)
|
TIMEOUT
Protocol timeout occurred (one party hung).
|
Modifier and Type | Field and Description |
---|---|
static int |
BAD_TRANSACTION_VALUE
A provided transaction was not in the proper structure
|
static int |
CHANNEL_VALUE_TOO_LARGE_VALUE
for the primary
|
static int |
MIN_PAYMENT_TOO_LARGE_VALUE
too large for the primary
|
static int |
NO_ACCEPTABLE_VERSION_VALUE
formatted or was out of order.
|
static int |
OTHER_VALUE
OTHER = 8; |
static int |
SYNTAX_ERROR_VALUE
Generic error indicating some message was not properly
|
static int |
TIME_WINDOW_UNACCEPTABLE_VALUE
(wrong inputs/outputs, sequence, lock time, signature,
etc)
|
static int |
TIMEOUT_VALUE
Protocol timeout occurred (one party hung).
|
Modifier and Type | Method and Description |
---|---|
static Protos.Error.ErrorCode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Protos.Error.ErrorCode> |
internalGetValueMap() |
static Protos.Error.ErrorCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.Error.ErrorCode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.Error.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.Error.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.Error.ErrorCode TIMEOUT
Protocol timeout occurred (one party hung).
TIMEOUT = 1;
public static final Protos.Error.ErrorCode SYNTAX_ERROR
Generic error indicating some message was not properly
SYNTAX_ERROR = 2;
public static final Protos.Error.ErrorCode NO_ACCEPTABLE_VERSION
formatted or was out of order.
NO_ACCEPTABLE_VERSION = 3;
public static final Protos.Error.ErrorCode BAD_TRANSACTION
A provided transaction was not in the proper structure
BAD_TRANSACTION = 4;
public static final Protos.Error.ErrorCode TIME_WINDOW_UNACCEPTABLE
(wrong inputs/outputs, sequence, lock time, signature, etc)
TIME_WINDOW_UNACCEPTABLE = 5;
public static final Protos.Error.ErrorCode CHANNEL_VALUE_TOO_LARGE
for the primary
CHANNEL_VALUE_TOO_LARGE = 6;
public static final Protos.Error.ErrorCode MIN_PAYMENT_TOO_LARGE
too large for the primary
MIN_PAYMENT_TOO_LARGE = 7;
public static final Protos.Error.ErrorCode OTHER
OTHER = 8;
public static final int TIMEOUT_VALUE
Protocol timeout occurred (one party hung).
TIMEOUT = 1;
public static final int SYNTAX_ERROR_VALUE
Generic error indicating some message was not properly
SYNTAX_ERROR = 2;
public static final int NO_ACCEPTABLE_VERSION_VALUE
formatted or was out of order.
NO_ACCEPTABLE_VERSION = 3;
public static final int BAD_TRANSACTION_VALUE
A provided transaction was not in the proper structure
BAD_TRANSACTION = 4;
public static final int TIME_WINDOW_UNACCEPTABLE_VALUE
(wrong inputs/outputs, sequence, lock time, signature, etc)
TIME_WINDOW_UNACCEPTABLE = 5;
public static final int CHANNEL_VALUE_TOO_LARGE_VALUE
for the primary
CHANNEL_VALUE_TOO_LARGE = 6;
public static final int MIN_PAYMENT_TOO_LARGE_VALUE
too large for the primary
MIN_PAYMENT_TOO_LARGE = 7;
public static final int OTHER_VALUE
OTHER = 8;
public static Protos.Error.ErrorCode[] values()
for (Protos.Error.ErrorCode c : Protos.Error.ErrorCode.values()) System.out.println(c);
public static Protos.Error.ErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Protos.Error.ErrorCode valueOf(int value)
forNumber(int)
instead.public static Protos.Error.ErrorCode forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Error.ErrorCode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Error.ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)