Class RpcInvocationFailedEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.server.communication.AbstractRpcInvocationEvent
com.vaadin.flow.server.communication.RpcInvocationFailedEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionRpcInvocationFailedEvent(UI ui, String type, int nodeId, String name, Throwable error) Creates a new event. -
Method Summary
Methods inherited from class com.vaadin.flow.server.communication.AbstractRpcInvocationEvent
getName, getNodeId, getType, getUIMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RpcInvocationFailedEvent
Creates a new event.- Parameters:
ui- the UI the invocation is handled against, notnulltype- the protocol-level invocation type, notnullnodeId- the id of the targetedStateNode, or-1if the invocation does not target a nodename- a human-readable identifier for the invocation, ornullif none applieserror- the throwable raised by the invocation handler
-
-
Method Details
-
getError
Gets the throwable raised by the invocation handler.- Returns:
- the throwable
-