Package com.heroiclabs.nakama.rtapi
Interface ErrorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Error
,Error.Builder
public interface ErrorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsContext
(String key) Additional error details which may be different for each response.int
getCode()
The error code which should be one of "Error.Code" enums.Deprecated.int
Additional error details which may be different for each response.Additional error details which may be different for each response.getContextOrDefault
(String key, String defaultValue) Additional error details which may be different for each response.getContextOrThrow
(String key) Additional error details which may be different for each response.A message in English to help developers debug the response.com.google.protobuf.ByteString
A message in English to help developers debug the response.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 error code which should be one of "Error.Code" enums.
int32 code = 1;
- Returns:
- The code.
-
getMessage
String getMessage()A message in English to help developers debug the response.
string message = 2;
- Returns:
- The message.
-
getMessageBytes
com.google.protobuf.ByteString getMessageBytes()A message in English to help developers debug the response.
string message = 2;
- Returns:
- The bytes for message.
-
getContextCount
int getContextCount()Additional error details which may be different for each response.
map<string, string> context = 3;
-
containsContext
Additional error details which may be different for each response.
map<string, string> context = 3;
-
getContext
Deprecated.UsegetContextMap()
instead. -
getContextMap
Additional error details which may be different for each response.
map<string, string> context = 3;
-
getContextOrDefault
Additional error details which may be different for each response.
map<string, string> context = 3;
-
getContextOrThrow
Additional error details which may be different for each response.
map<string, string> context = 3;
-