Package javax.websocket
Annotation Type OnError
-
@Retention(RUNTIME) @Target(METHOD) public @interface OnError
This method level annotation can be used to decorate a Java method that wishes to be called in order to handle errors. SeeEndpoint.onError(javax.websocket.Session, java.lang.Throwable)
for a description of the different categories of error.The method may only take the following parameters:-
- optional
Session
parameter - a
Throwable
parameter - Zero to n String parameters annotated with the
javax.websocket.server.PathParam
annotation
The parameters may appear in any order.
- Author:
- dannycoward
- optional