org.bitcoin.paymentchannel
Enum Protos.Error.ErrorCode

java.lang.Object
  extended by java.lang.Enum<Protos.Error.ErrorCode>
      extended by org.bitcoin.paymentchannel.Protos.Error.ErrorCode
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Protos.Error.ErrorCode>
Enclosing class:
Protos.Error

public static enum Protos.Error.ErrorCode
extends Enum<Protos.Error.ErrorCode>
implements com.google.protobuf.ProtocolMessageEnum

Protobuf enum paymentchannels.Error.ErrorCode


Enum Constant Summary
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_TOO_LARGE
          TIME_WINDOW_TOO_LARGE = 5;
TIMEOUT
          TIMEOUT = 1;
 
Field Summary
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_TOO_LARGE_VALUE
          TIME_WINDOW_TOO_LARGE = 5;
static int TIMEOUT_VALUE
          TIMEOUT = 1;
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TIMEOUT

public static final Protos.Error.ErrorCode TIMEOUT
TIMEOUT = 1;
 Protocol timeout occurred (one party hung).
 


SYNTAX_ERROR

public static final Protos.Error.ErrorCode SYNTAX_ERROR
SYNTAX_ERROR = 2;
 Generic error indicating some message was not properly
 


NO_ACCEPTABLE_VERSION

public static final Protos.Error.ErrorCode NO_ACCEPTABLE_VERSION
NO_ACCEPTABLE_VERSION = 3;
 formatted or was out of order.
 


BAD_TRANSACTION

public static final Protos.Error.ErrorCode BAD_TRANSACTION
BAD_TRANSACTION = 4;
 A provided transaction was not in the proper structure
 


TIME_WINDOW_TOO_LARGE

public static final Protos.Error.ErrorCode TIME_WINDOW_TOO_LARGE
TIME_WINDOW_TOO_LARGE = 5;
 (wrong inputs/outputs, sequence, lock time, signature,
 etc)
 


CHANNEL_VALUE_TOO_LARGE

public static final Protos.Error.ErrorCode CHANNEL_VALUE_TOO_LARGE
CHANNEL_VALUE_TOO_LARGE = 6;
 for the primary
 


MIN_PAYMENT_TOO_LARGE

public static final Protos.Error.ErrorCode MIN_PAYMENT_TOO_LARGE
MIN_PAYMENT_TOO_LARGE = 7;
 too large for the primary
 


OTHER

public static final Protos.Error.ErrorCode OTHER
OTHER = 8;

Field Detail

TIMEOUT_VALUE

public static final int TIMEOUT_VALUE
TIMEOUT = 1;
 Protocol timeout occurred (one party hung).
 

See Also:
Constant Field Values

SYNTAX_ERROR_VALUE

public static final int SYNTAX_ERROR_VALUE
SYNTAX_ERROR = 2;
 Generic error indicating some message was not properly
 

See Also:
Constant Field Values

NO_ACCEPTABLE_VERSION_VALUE

public static final int NO_ACCEPTABLE_VERSION_VALUE
NO_ACCEPTABLE_VERSION = 3;
 formatted or was out of order.
 

See Also:
Constant Field Values

BAD_TRANSACTION_VALUE

public static final int BAD_TRANSACTION_VALUE
BAD_TRANSACTION = 4;
 A provided transaction was not in the proper structure
 

See Also:
Constant Field Values

TIME_WINDOW_TOO_LARGE_VALUE

public static final int TIME_WINDOW_TOO_LARGE_VALUE
TIME_WINDOW_TOO_LARGE = 5;
 (wrong inputs/outputs, sequence, lock time, signature,
 etc)
 

See Also:
Constant Field Values

CHANNEL_VALUE_TOO_LARGE_VALUE

public static final int CHANNEL_VALUE_TOO_LARGE_VALUE
CHANNEL_VALUE_TOO_LARGE = 6;
 for the primary
 

See Also:
Constant Field Values

MIN_PAYMENT_TOO_LARGE_VALUE

public static final int MIN_PAYMENT_TOO_LARGE_VALUE
MIN_PAYMENT_TOO_LARGE = 7;
 too large for the primary
 

See Also:
Constant Field Values

OTHER_VALUE

public static final int OTHER_VALUE
OTHER = 8;

See Also:
Constant Field Values
Method Detail

values

public static Protos.Error.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Protos.Error.ErrorCode c : Protos.Error.ErrorCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Protos.Error.ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getNumber

public final int getNumber()
Specified by:
getNumber in interface com.google.protobuf.Internal.EnumLite
Specified by:
getNumber in interface com.google.protobuf.ProtocolMessageEnum

valueOf

public static Protos.Error.ErrorCode valueOf(int value)

internalGetValueMap

public static com.google.protobuf.Internal.EnumLiteMap<Protos.Error.ErrorCode> internalGetValueMap()

getValueDescriptor

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
Specified by:
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum

getDescriptorForType

public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum

getDescriptor

public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()

valueOf

public static Protos.Error.ErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)


Copyright © 2014. All rights reserved.