Class ProtocolException

All Implemented Interfaces:
Serializable

public class ProtocolException extends RuntimeException
See Also:
  • Field Details

  • Constructor Details

    • ProtocolException

      public ProtocolException(String message, int code)
    • ProtocolException

      public ProtocolException(String message, int code, Throwable cause)
  • 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

      public static ProtocolException commandsToProcessIsEmpty()
    • unknownMessageType

      public static ProtocolException unknownMessageType(short type)
    • methodNotFound

      public static ProtocolException methodNotFound(String serviceName, String handlerName)
    • badState

      public static ProtocolException badState(Object thisState)
    • badNotificationMessage

      public static ProtocolException badNotificationMessage(String missingField)
    • badRunNotificationId

      public static ProtocolException badRunNotificationId(NotificationId notificationId)
    • commandMissingField

      public static ProtocolException commandMissingField(Class<?> clazz, String missingField)
    • inputClosedWhileWaitingEntries

      public static ProtocolException inputClosedWhileWaitingEntries()
    • closedWhileWaitingEntries

      public static ProtocolException closedWhileWaitingEntries()
    • idempotencyKeyIsEmpty

      public static ProtocolException idempotencyKeyIsEmpty()
    • unauthorized

      public static ProtocolException unauthorized(Throwable e)