Package ej.websocket

Class ServerException

    • Constructor Detail

      • ServerException

        public ServerException​(String string)
        Create a new server exception.
        Parameters:
        string - message to describe the error case
      • ServerException

        public ServerException()
    • Method Detail

      • getHttpStatusCode

        public int getHttpStatusCode()
        Get the the HTTP status code returned by the server.
        Returns:
        the status code ; 0 if the code could not be determined
      • setHttpStatusCode

        public void setHttpStatusCode​(int httpStatusCode)
        Set the the HTTP status code returned by the server.
        Parameters:
        httpStatusCode - the status code