Apache Tomcat 7.0.54

org.apache.tomcat.websocket
Class WsIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.apache.tomcat.websocket.WsIOException
All Implemented Interfaces:
Serializable

public class WsIOException
extends IOException

Allows the WebSocket implementation to throw an IOException that includes a CloseReason specific to the error that can be passed back to the client.

See Also:
Serialized Form

Constructor Summary
WsIOException(CloseReason closeReason)
           
 
Method Summary
 CloseReason getCloseReason()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WsIOException

public WsIOException(CloseReason closeReason)
Method Detail

getCloseReason

public CloseReason getCloseReason()

Apache Tomcat 7.0.54

Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.