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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCode()The code can be: * Any of the error codes defined by OutputStreamEntry.failure (see Failure message) * JOURNAL_MISMATCH = 32, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code.java.lang.StringgetDescription()Contains a verbose error description, e.g.com.google.protobuf.ByteStringgetDescriptionBytes()Contains a verbose error description, e.g.java.lang.StringgetMessage()Contains a concise error message, e.g.com.google.protobuf.ByteStringgetMessageBytes()Contains a concise error message, e.g.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getCode
int getCode()
The code can be: * Any of the error codes defined by OutputStreamEntry.failure (see Failure message) * JOURNAL_MISMATCH = 32, that is when the SDK cannot replay a journal due to the mismatch between the journal and the actual code. * PROTOCOL_VIOLATION = 33, that is when the SDK receives an unexpected message or an expected message variant, given its state. If 16 < code < 32, or code > 33, the runtime will interpret it as code 2 (UNKNOWN).
uint32 code = 1;- Returns:
- The code.
-
getMessage
java.lang.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.
-
getDescription
java.lang.String getDescription()
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
Contains a verbose error description, e.g. the exception stacktrace.
string description = 3;- Returns:
- The bytes for description.
-
-