org.atmosphere.wasync.transport
Class TransportNotSupported

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.atmosphere.wasync.transport.TransportNotSupported
All Implemented Interfaces:
java.io.Serializable

public class TransportNotSupported
extends java.lang.Exception

An exception thrown when a Transport is not supported by the server. The exception can be handled using a Function:

 

class Function<TransportNotSupported>() { public void on(TransportNotSupported ex) { } }

Author:
Jeanfrancois Arcand
See Also:
Serialized Form

Constructor Summary
TransportNotSupported(int statusCode, java.lang.String reasonPhrase)
           
 
Method Summary
 int getStatusCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransportNotSupported

public TransportNotSupported(int statusCode,
                             java.lang.String reasonPhrase)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

getStatusCode

public int getStatusCode()


Copyright © 2014. All Rights Reserved.