Package dev.restate.sdk.core
Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.restate.sdk.core.ProtocolException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolException
(String message, int code) ProtocolException
(String message, int code, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolException
badNotificationMessage
(String missingField) static ProtocolException
badRunNotificationId
(NotificationId notificationId) static ProtocolException
static ProtocolException
static ProtocolException
commandClassDoesNotMatch
(Class<? extends com.google.protobuf.MessageLite> expectedClazz, com.google.protobuf.MessageLite actual) static ProtocolException
commandDoesNotMatch
(com.google.protobuf.MessageLite expected, com.google.protobuf.MessageLite actual) static ProtocolException
commandMissingField
(Class<?> clazz, String missingField) static ProtocolException
int
getCode()
static ProtocolException
static ProtocolException
static ProtocolException
methodNotFound
(String serviceName, String handlerName) static ProtocolException
static ProtocolException
unexpectedMessage
(Class<? extends com.google.protobuf.MessageLite> expected, com.google.protobuf.MessageLite actual) static ProtocolException
unexpectedMessage
(String type, com.google.protobuf.MessageLite actual) static ProtocolException
unknownMessageType
(short type) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNSUPPORTED_MEDIA_TYPE_CODE
public static final int UNSUPPORTED_MEDIA_TYPE_CODE- See Also:
-
INTERNAL_CODE
public static final int INTERNAL_CODE- See Also:
-
-
Constructor Details
-
ProtocolException
-
ProtocolException
-
-
Method Details
-
getCode
public int getCode() -
unexpectedMessage
public static ProtocolException unexpectedMessage(Class<? extends com.google.protobuf.MessageLite> expected, com.google.protobuf.MessageLite actual) -
unexpectedMessage
public static ProtocolException unexpectedMessage(String type, com.google.protobuf.MessageLite actual) -
commandDoesNotMatch
public static ProtocolException commandDoesNotMatch(com.google.protobuf.MessageLite expected, com.google.protobuf.MessageLite actual) -
commandClassDoesNotMatch
public static ProtocolException commandClassDoesNotMatch(Class<? extends com.google.protobuf.MessageLite> expectedClazz, com.google.protobuf.MessageLite actual) -
commandsToProcessIsEmpty
-
unknownMessageType
-
methodNotFound
-
badState
-
badNotificationMessage
-
badRunNotificationId
-
commandMissingField
-
inputClosedWhileWaitingEntries
-
closedWhileWaitingEntries
-
idempotencyKeyIsEmpty
-
unauthorized
-