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

io.brachu.docker.compose.plugin.ExceptionMessages Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.brachu.docker.compose.plugin;

import io.brachu.johann.exception.JohannTimeoutException;

interface ExceptionMessages {

    static String clusterTimeout(JohannTimeoutException ex) {
        return "Timed out while waiting for cluster to be healthy."
                + " Either at least one of containers in the cluster failed to start properly or the value of 'wait' property is too short."
                + " Current 'wait' property value is " + ex.getTime() + " " + ex.getUnit() + ".";
    }

    static String serviceTimeout(String serviceName, JohannTimeoutException ex) {
        return "Timed out while waiting for '" + serviceName + "' service to be healthy."
                + " Either at least one of service's containers failed to start properly or the value of 'wait' property is too short."
                + " Current 'wait' property value is " + ex.getTime() + " " + ex.getUnit() + ".";
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy