Interface Protocol.ErrorMessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Protocol.ErrorMessage
,Protocol.ErrorMessage.Builder
- Enclosing class:
Protocol
public static interface Protocol.ErrorMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.Contains a concise error message, e.g.com.google.protobuf.ByteString
Contains a concise error message, e.g.long
Delay before executing the next retry, specified as duration in milliseconds.int
Command that caused the failure.Name of the entry that caused the failure.com.google.protobuf.ByteString
Name of the entry that caused the failure.int
Command type.The exception stacktrace, if available.com.google.protobuf.ByteString
The exception stacktrace, if available.boolean
Delay before executing the next retry, specified as duration in milliseconds.boolean
Command that caused the failure.boolean
Name of the entry that caused the failure.boolean
Command type.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCode
int getCode()The code can be any HTTP status code, as described https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml. In addition, we define the following error codes that MAY be used by the SDK for better error reporting: * JOURNAL_MISMATCH = 570, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code. * PROTOCOL_VIOLATION = 571, that is when the SDK receives an unexpected message or an expected message variant, given its state.
uint32 code = 1;
- Returns:
- The code.
-
getMessage
String getMessage()Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;
- Returns:
- The message.
-
getMessageBytes
com.google.protobuf.ByteString getMessageBytes()Contains a concise error message, e.g. Throwable#getMessage() in Java.
string message = 2;
- Returns:
- The bytes for message.
-
getStacktrace
String getStacktrace()The exception stacktrace, if available.
string stacktrace = 3;
- Returns:
- The stacktrace.
-
getStacktraceBytes
com.google.protobuf.ByteString getStacktraceBytes()The exception stacktrace, if available.
string stacktrace = 3;
- Returns:
- The bytes for stacktrace.
-
hasRelatedCommandIndex
boolean hasRelatedCommandIndex()Command that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_command_index = 4;
- Returns:
- Whether the relatedCommandIndex field is set.
-
getRelatedCommandIndex
int getRelatedCommandIndex()Command that caused the failure. This may be outside the current stored journal size. If no specific entry caused the failure, the current replayed/processed entry can be used.
optional uint32 related_command_index = 4;
- Returns:
- The relatedCommandIndex.
-
hasRelatedCommandName
boolean hasRelatedCommandName()Name of the entry that caused the failure.
optional string related_command_name = 5;
- Returns:
- Whether the relatedCommandName field is set.
-
getRelatedCommandName
String getRelatedCommandName()Name of the entry that caused the failure.
optional string related_command_name = 5;
- Returns:
- The relatedCommandName.
-
getRelatedCommandNameBytes
com.google.protobuf.ByteString getRelatedCommandNameBytes()Name of the entry that caused the failure.
optional string related_command_name = 5;
- Returns:
- The bytes for relatedCommandName.
-
hasRelatedCommandType
boolean hasRelatedCommandType()Command type.
optional uint32 related_command_type = 6;
- Returns:
- Whether the relatedCommandType field is set.
-
getRelatedCommandType
int getRelatedCommandType()Command type.
optional uint32 related_command_type = 6;
- Returns:
- The relatedCommandType.
-
hasNextRetryDelay
boolean hasNextRetryDelay()Delay before executing the next retry, specified as duration in milliseconds. If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
optional uint64 next_retry_delay = 8;
- Returns:
- Whether the nextRetryDelay field is set.
-
getNextRetryDelay
long getNextRetryDelay()Delay before executing the next retry, specified as duration in milliseconds. If provided, it will override the default retry policy used by Restate's invoker ONLY for the next retry attempt.
optional uint64 next_retry_delay = 8;
- Returns:
- The nextRetryDelay.
-