package com.atlassian.bitbucket.installer.validation;

import com.atlassian.bitbucket.installer.InstallationException;

/**
 * An exception to be thrown when a validation fails and it's necessary
 * for the user to correct their input before they continue. Typically this will
 * result in an error message for users.
 */
public class HardValidationException extends InstallationException {
    public static final String ERROR_SUBDIRECTORY = "error.directory.subdirectory";
    public static final String ERROR_DIRECTORY_FILE = "error.directory.file";
    public static final String ERROR_DIRECTORY_SPACES = "error.directory.spaces";
    public static final String ERROR_DIRECTORY_STRUCTURE = "error.directory.structure";
    public static final String ERROR_INVALID_CONTENTS = "error.directory.invalid.contents";
    public static final String ERROR_DIRECTORY_ACCESS = "error.directory.access";
    public static final String ERROR_DIRECTORY_USED = "error.directory.used";
    public static final String ERROR_PORT_SAME = "error.port.same";
    public static final String ERROR_PORT_HTTP_SSH = "error.port.http.ssh";
    public static final String ERROR_PORT_CONTROL_SSH = "error.port.control.ssh";
    public static final String ERROR_PORT_HTTP_ELASTICSEARCH_HTTP = "error.port.http.elasticsearch.http";
    public static final String ERROR_PORT_CONTROL_ELASTICSEARCH_HTTP = "error.port.control.elasticsearch.http";
    public static final String ERROR_PORT_HTTP_ELASTICSEARCH_TRANSPORT = "error.port.http.elasticsearch.transport";
    public static final String ERROR_PORT_CONTROL_ELASTICSEARCH_TRANSPORT = "error.port.control.elasticsearch.transport";
    public static final String ERROR_PORT_USED = "error.port.used";
    public static final String ERROR_PORT_HTTP_USED = "error.port.http.used";
    public static final String ERROR_PORT_CONTROL_USED = "error.port.control.used";
    public static final String ERROR_PORT_RANGE = "error.port.range";
    public static final String ERROR_PORT_HTTP_RANGE = "error.port.http.range";
    public static final String ERROR_PORT_CONTROL_RANGE = "error.port.control.range";
    public static final String ERROR_GENERIC = "error.generic";
    public static final String ERROR_SERVICE_ADMIN = "error.service.admin";
    public static final String ERROR_INSTALL_MIRROR_ON_EXISTING_HOME = "error.directory.existing.home.mirror.install";

    public HardValidationException(String messageKey) {
        super(messageKey);
    }
}
