Annotation Type OnError


@Retention(RUNTIME) @Target(METHOD) public @interface OnError
Annotates a method on a POJO endpoint to handle error events. The annotated method will be called when an error occurs on the WebSocket session.