<commit_before>package brooklyn.location;


/**
 * Indicates no machines are available in a given location.
 */
public class NoMachinesAvailableException extends Exception {
    private static final long serialVersionUID = 1079817235289265761L;
    
    @Deprecated
    private Location location;

    /** @deprecated since 0.5; always include a helpful message! */
    public NoMachinesAvailableException() {
    }

    public NoMachinesAvailableException(String s) {
        super(s);
    }

    public NoMachinesAvailableException(String s, Throwable throwable) {
        super(s, throwable);
    }

    /** @deprecated since 0.5; always include a helpful message! */
    public NoMachinesAvailableException(Throwable throwable) {
        super(throwable);
    }

    /**
     * @deprecated since 0.5; don't include Location - just use {@link #NoMachinesAvailableException(String)}
     */
    public NoMachinesAvailableException(Location location) {
        super("No machines available in "+location.toString());
        this.location = location;
    }

    /**
     * @deprecated since 0.5; don't include Location - just use {@link #NoMachinesAvailableException(String)}
     */
    public NoMachinesAvailableException(Location location, String s) {
        super(s);
        this.location = location;
    }
    
    /**
     * @deprecated since 0.5; don't include Location - just use {@link #NoMachinesAvailableException(String, Throwable)}
     */
    public NoMachinesAvailableException(Location location, String s, Throwable throwable) {
        super(s, throwable);
        this.location = location;
    }

    /**
     * @deprecated since 0.5; don't include Location - just use {@link #NoMachinesAvailableException(String, Throwable)}
     */
    public NoMachinesAvailableException(Location location, Throwable throwable) {
        super("No machines available in "+location.toString(), throwable);
        this.location = location;
    }

    /**
     * @deprecated since 0.5; the catcher can know which location had no machines based on which
     *             location they asked for; will remove this so that the exception is definitely 
     *             serializable.
     */
    public Location getLocation() {
        return location;
    }
}<commit_msg>Tidy deprecated NoMachineAvailableException constructors<commit_after>package brooklyn.location;


/**
 * Indicates no machines are available in a given location.
 */
public class NoMachinesAvailableException extends Exception {
    private static final long serialVersionUID = 1079817235289265761L;
    
    public NoMachinesAvailableException(String s) {
        super(s);
    }

    public NoMachinesAvailableException(String s, Throwable throwable) {
        super(s, throwable);
    }
}
{'fraction_non_alphanumeric': 0.08706647398843931, 'fraction_numerical': 0.01878612716763006, 'mean_word_length': 3.0961538461538463, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1464331', 'n_tokens_mistral': 766, 'n_tokens_neox': 706, 'n_words': 213}