Package com.zeroc.Ice

Class DispatchException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RequestFailedException, UnknownException

public class DispatchException extends LocalException
The exception that is thrown when a dispatch failed. This is the base class for local exceptions that can be marshaled and transmitted "over the wire". You can throw this exception in the implementation of an operation, or in a middleware. The Ice runtime then logically rethrows this exception to the client.
See Also:
  • Field Details

    • replyStatus

      public final int replyStatus
      The reply status as an int (see ReplyStatus).
  • Constructor Details

    • DispatchException

      public DispatchException(int replyStatus, String message, Throwable cause)
      Constructs a DispatchException with the specified reply status, message, and cause.
      Parameters:
      replyStatus - the reply status as an int (see ReplyStatus)
      message - the detail message
      cause - the cause
    • DispatchException

      public DispatchException(int replyStatus, String message)
      Constructs a DispatchException with the specified reply status and message.
      Parameters:
      replyStatus - the reply status as an int (see ReplyStatus)
      message - the detail message
    • DispatchException

      public DispatchException(int replyStatus)
      Constructs a DispatchException with the specified reply status.
      Parameters:
      replyStatus - the reply status as an int (see ReplyStatus)
  • Method Details

    • ice_id

      public String ice_id()
      Description copied from class: LocalException
      Returns the type ID of this exception.
      Overrides:
      ice_id in class LocalException
      Returns:
      the type ID of this exception