All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nordstrom.automation.selenium.exceptions.GridServerLaunchFailedException Maven / Gradle / Ivy

Go to download

Selenium3 Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium 3.0 (WebDriver).

There is a newer version: 1.0.4
Show newest version
package com.nordstrom.automation.selenium.exceptions;

import java.io.IOException;

/**
 * Thrown if a Grid component process failed to start.
 */
public class GridServerLaunchFailedException extends RuntimeException {

    private static final long serialVersionUID = 5186366410431999078L;
    private static final String TEMPLATE = "Failed to start grid %s process";

    /**
     * Constructor for {@code launch failed} exception with the specified server role.
     * 
     * @param role Grid server role specifier ({@code hub} or {@code node})
     * @param cause the cause of this exception
     */
    public GridServerLaunchFailedException(String role, IOException cause) {
        super(getMessage(role), cause);
    }
    
    /**
     * Get exception message for the specified server role.
     * 
     * @param role Grid server role specifier ({@code hub} or {@code node})
     * @return exception message for the specified server role
     */
    private static String getMessage(String role) {
        return String.format(TEMPLATE, role);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy