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 intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionProtocolException(String message, int code) ProtocolException(String message, int code, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolExceptionbadNotificationMessage(String missingField) static ProtocolExceptionbadRunNotificationId(NotificationId notificationId) static ProtocolExceptionstatic ProtocolExceptionstatic ProtocolExceptioncommandMissingField(Class<?> clazz, String missingField) static ProtocolExceptionintgetCode()static ProtocolExceptionstatic ProtocolExceptionstatic ProtocolExceptionmethodNotFound(String serviceName, String handlerName) static ProtocolExceptionstatic ProtocolExceptionuncompletedDoProgressDuringReplay(List<NotificationId> sortedNotificationIds, Map<NotificationId, String> notificationDescriptions) static ProtocolExceptionunexpectedMessage(Class<? extends com.google.protobuf.MessageLite> expected, com.google.protobuf.MessageLite actual) static ProtocolExceptionunexpectedMessage(String expected, com.google.protobuf.MessageLite actual) static ProtocolExceptionunknownMessageType(short type) static ProtocolExceptionunsupportedFeature(String featureName, Protocol.ServiceProtocolVersion requiredVersion, Protocol.ServiceProtocolVersion negotiatedVersion) 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:
-
JOURNAL_MISMATCH_CODE
public static final int JOURNAL_MISMATCH_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 expected, com.google.protobuf.MessageLite actual) -
commandsToProcessIsEmpty
-
unknownMessageType
-
methodNotFound
-
badState
-
badNotificationMessage
-
badRunNotificationId
-
commandMissingField
-
inputClosedWhileWaitingEntries
-
closedWhileWaitingEntries
-
idempotencyKeyIsEmpty
-
unauthorized
-
uncompletedDoProgressDuringReplay
public static ProtocolException uncompletedDoProgressDuringReplay(List<NotificationId> sortedNotificationIds, Map<NotificationId, String> notificationDescriptions) -
unsupportedFeature
public static ProtocolException unsupportedFeature(String featureName, Protocol.ServiceProtocolVersion requiredVersion, Protocol.ServiceProtocolVersion negotiatedVersion)
-