Class LoginFailedHandler


  • public class LoginFailedHandler
    extends Object
    To handle login failed exceptions.
    Author:
    harald
    • Constructor Detail

      • LoginFailedHandler

        public LoginFailedHandler​(DesktopApplication<?> application,
                                  javafx.scene.Parent view,
                                  org.tentackle.session.SessionInfo sessionInfo)
        Creates a login failed handler.
        Parameters:
        application - the application
        view - the view
        sessionInfo - the session info
    • Method Detail

      • getApplication

        public DesktopApplication<?> getApplication()
        Gets the application.
        Returns:
        the application
      • getView

        public javafx.scene.Parent getView()
        Gets the view.
        Returns:
        the view
      • getSessionInfo

        public org.tentackle.session.SessionInfo getSessionInfo()
        Gets the session info.
        Returns:
        the session info
      • handle

        public Runnable handle​(Exception ex)
        Handles the login failed exception.
        Parameters:
        ex - the login failed exception
        Returns:
        null if retry login, else a runnable to be executed within the login task