public static enum Protos.Error.ErrorCode extends Enum<Protos.Error.ErrorCode> implements com.google.protobuf.ProtocolMessageEnum
paymentchannels.Error.ErrorCode
Enum Constant and Description |
---|
BAD_TRANSACTION
BAD_TRANSACTION = 4; |
CHANNEL_VALUE_TOO_LARGE
CHANNEL_VALUE_TOO_LARGE = 6; |
MIN_PAYMENT_TOO_LARGE
MIN_PAYMENT_TOO_LARGE = 7; |
NO_ACCEPTABLE_VERSION
NO_ACCEPTABLE_VERSION = 3; |
OTHER
OTHER = 8; |
SYNTAX_ERROR
SYNTAX_ERROR = 2; |
TIME_WINDOW_UNACCEPTABLE
TIME_WINDOW_UNACCEPTABLE = 5; |
TIMEOUT
TIMEOUT = 1; |
Modifier and Type | Field and Description |
---|---|
static int |
BAD_TRANSACTION_VALUE
BAD_TRANSACTION = 4; |
static int |
CHANNEL_VALUE_TOO_LARGE_VALUE
CHANNEL_VALUE_TOO_LARGE = 6; |
static int |
MIN_PAYMENT_TOO_LARGE_VALUE
MIN_PAYMENT_TOO_LARGE = 7; |
static int |
NO_ACCEPTABLE_VERSION_VALUE
NO_ACCEPTABLE_VERSION = 3; |
static int |
OTHER_VALUE
OTHER = 8; |
static int |
SYNTAX_ERROR_VALUE
SYNTAX_ERROR = 2; |
static int |
TIME_WINDOW_UNACCEPTABLE_VALUE
TIME_WINDOW_UNACCEPTABLE = 5; |
static int |
TIMEOUT_VALUE
TIMEOUT = 1; |
Modifier and Type | Method and Description |
---|---|
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) |
static Protos.Error.ErrorCode |
valueOf(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
TIMEOUT = 1;
Protocol timeout occurred (one party hung).
public static final Protos.Error.ErrorCode SYNTAX_ERROR
SYNTAX_ERROR = 2;
Generic error indicating some message was not properly
public static final Protos.Error.ErrorCode NO_ACCEPTABLE_VERSION
NO_ACCEPTABLE_VERSION = 3;
formatted or was out of order.
public static final Protos.Error.ErrorCode BAD_TRANSACTION
BAD_TRANSACTION = 4;
A provided transaction was not in the proper structure
public static final Protos.Error.ErrorCode TIME_WINDOW_UNACCEPTABLE
TIME_WINDOW_UNACCEPTABLE = 5;
(wrong inputs/outputs, sequence, lock time, signature, etc)
public static final Protos.Error.ErrorCode CHANNEL_VALUE_TOO_LARGE
CHANNEL_VALUE_TOO_LARGE = 6;
for the primary
public static final Protos.Error.ErrorCode MIN_PAYMENT_TOO_LARGE
MIN_PAYMENT_TOO_LARGE = 7;
too large for the primary
public static final Protos.Error.ErrorCode OTHER
OTHER = 8;
public static final int TIMEOUT_VALUE
TIMEOUT = 1;
Protocol timeout occurred (one party hung).
public static final int SYNTAX_ERROR_VALUE
SYNTAX_ERROR = 2;
Generic error indicating some message was not properly
public static final int NO_ACCEPTABLE_VERSION_VALUE
NO_ACCEPTABLE_VERSION = 3;
formatted or was out of order.
public static final int BAD_TRANSACTION_VALUE
BAD_TRANSACTION = 4;
A provided transaction was not in the proper structure
public static final int TIME_WINDOW_UNACCEPTABLE_VALUE
TIME_WINDOW_UNACCEPTABLE = 5;
(wrong inputs/outputs, sequence, lock time, signature, etc)
public static final int CHANNEL_VALUE_TOO_LARGE_VALUE
CHANNEL_VALUE_TOO_LARGE = 6;
for the primary
public static final int MIN_PAYMENT_TOO_LARGE_VALUE
MIN_PAYMENT_TOO_LARGE = 7;
too large for the primary
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static Protos.Error.ErrorCode valueOf(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)
Copyright © 2014. All rights reserved.