Class RpcInvocationFailedEvent

All Implemented Interfaces:
Serializable

public class RpcInvocationFailedEvent extends AbstractRpcInvocationEvent
Event fired through the service event bus when handling a client-to-server RPC invocation threw, before the matching RpcInvocationEndedEvent. The framework routes the throwable to the session error handler independently of this event.
Since:
25.3
See Also:
  • Constructor Details

    • RpcInvocationFailedEvent

      public RpcInvocationFailedEvent(UI ui, String type, int nodeId, String name, Throwable error)
      Creates a new event.
      Parameters:
      ui - the UI the invocation is handled against, not null
      type - the protocol-level invocation type, not null
      nodeId - the id of the targeted StateNode, or -1 if the invocation does not target a node
      name - a human-readable identifier for the invocation, or null if none applies
      error - the throwable raised by the invocation handler
  • Method Details

    • getError

      public Throwable getError()
      Gets the throwable raised by the invocation handler.
      Returns:
      the throwable