public final class ErrorDetail extends com.google.protobuf.GeneratedMessageV3 implements ErrorDetailOrBuilder
If any of the functions in the Gateway service returns an error, then it will be in the format of a google.rpc.Status message. The 'details' field of this message will be populated with extra information if the error is a result of one or more failed requests to remote peers or orderer nodes. ErrorDetail contains details of errors that are received by any of the endorsing peers as a result of processing the Evaluate or Endorse services, or from the ordering node(s) as a result of processing the Submit service.Protobuf type
gateway.ErrorDetail
Modifier and Type | Class and Description |
---|---|
static class |
ErrorDetail.Builder
If any of the functions in the Gateway service returns an error, then it will be in the format of
a google.rpc.Status message.
|
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
ADDRESS_FIELD_NUMBER |
static int |
MESSAGE_FIELD_NUMBER |
static int |
MSP_ID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAddress()
The address of the endorsing peer or ordering node that returned an error.
|
com.google.protobuf.ByteString |
getAddressBytes()
The address of the endorsing peer or ordering node that returned an error.
|
static ErrorDetail |
getDefaultInstance() |
ErrorDetail |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getMessage()
The error message returned by this node.
|
com.google.protobuf.ByteString |
getMessageBytes()
The error message returned by this node.
|
String |
getMspId()
The MSP Identifier of this node.
|
com.google.protobuf.ByteString |
getMspIdBytes()
The MSP Identifier of this node.
|
com.google.protobuf.Parser<ErrorDetail> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static ErrorDetail.Builder |
newBuilder() |
static ErrorDetail.Builder |
newBuilder(ErrorDetail prototype) |
ErrorDetail.Builder |
newBuilderForType() |
static ErrorDetail |
parseDelimitedFrom(InputStream input) |
static ErrorDetail |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ErrorDetail |
parseFrom(byte[] data) |
static ErrorDetail |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ErrorDetail |
parseFrom(ByteBuffer data) |
static ErrorDetail |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ErrorDetail |
parseFrom(com.google.protobuf.ByteString data) |
static ErrorDetail |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ErrorDetail |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ErrorDetail |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ErrorDetail |
parseFrom(InputStream input) |
static ErrorDetail |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ErrorDetail> |
parser() |
ErrorDetail.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ADDRESS_FIELD_NUMBER
public static final int MSP_ID_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public String getAddress()
The address of the endorsing peer or ordering node that returned an error.
string address = 1 [json_name = "address"];
getAddress
in interface ErrorDetailOrBuilder
public com.google.protobuf.ByteString getAddressBytes()
The address of the endorsing peer or ordering node that returned an error.
string address = 1 [json_name = "address"];
getAddressBytes
in interface ErrorDetailOrBuilder
public String getMspId()
The MSP Identifier of this node.
string msp_id = 2 [json_name = "mspId"];
getMspId
in interface ErrorDetailOrBuilder
public com.google.protobuf.ByteString getMspIdBytes()
The MSP Identifier of this node.
string msp_id = 2 [json_name = "mspId"];
getMspIdBytes
in interface ErrorDetailOrBuilder
public String getMessage()
The error message returned by this node.
string message = 3 [json_name = "message"];
getMessage
in interface ErrorDetailOrBuilder
public com.google.protobuf.ByteString getMessageBytes()
The error message returned by this node.
string message = 3 [json_name = "message"];
getMessageBytes
in interface ErrorDetailOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static ErrorDetail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static ErrorDetail parseFrom(InputStream input) throws IOException
IOException
public static ErrorDetail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ErrorDetail parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ErrorDetail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ErrorDetail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static ErrorDetail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ErrorDetail.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static ErrorDetail.Builder newBuilder()
public static ErrorDetail.Builder newBuilder(ErrorDetail prototype)
public ErrorDetail.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static ErrorDetail getDefaultInstance()
public static com.google.protobuf.Parser<ErrorDetail> parser()
public com.google.protobuf.Parser<ErrorDetail> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public ErrorDetail getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.