407469 - Method parameters for @OnWebSocketError should support Throwable

+ Simple javadoc fix, code already uses Throwable.
This commit is contained in:
Joakim Erdfelt 2013-05-08 11:26:28 -07:00
parent f92aab9b88
commit 63c7556c2a
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,6 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target; import java.lang.annotation.Target;
import org.eclipse.jetty.websocket.api.Session; import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.WebSocketException;
/** /**
* Annotation for receiving websocket errors (exceptions) that have occurred internally in the websocket implementation. * Annotation for receiving websocket errors (exceptions) that have occurred internally in the websocket implementation.
@ -34,8 +33,8 @@ import org.eclipse.jetty.websocket.api.WebSocketException;
* Note: <code>methodName</code> can be any name you want to use. * Note: <code>methodName</code> can be any name you want to use.
* <p> * <p>
* <ol> * <ol>
* <li><code>public void methodName({@link WebSocketException} error)</code></li> * <li><code>public void methodName({@link Throwable} error)</code></li>
* <li><code>public void methodName({@link Session} session, {@link WebSocketException} error)</code></li> * <li><code>public void methodName({@link Session} session, {@link Throwable} error)</code></li>
* </ol> * </ol>
*/ */
@Documented @Documented