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;
    }
}

@@ -232,175 +232,8 @@
    %0A
-    @Deprecated%0A    private Location location;%0A%0A    /** @deprecated since 0.5; always include a helpful message! */%0A    public NoMachinesAvailableException() %7B%0A    %7D%0A%0A
     
@@ -416,1669 +416,7 @@
    %7D
-%0A%0A    /** @deprecated since 0.5; always include a helpful message! */%0A    public NoMachinesAvailableException(Throwable throwable) %7B%0A        super(throwable);%0A    %7D%0A%0A    /**%0A     * @deprecated since 0.5; don't include Location - just use %7B@link #NoMachinesAvailableException(String)%7D%0A     */%0A    public NoMachinesAvailableException(Location location) %7B%0A        super(%22No machines available in %22+location.toString());%0A        this.location = location;%0A    %7D%0A%0A    /**%0A     * @deprecated since 0.5; don't include Location - just use %7B@link #NoMachinesAvailableException(String)%7D%0A     */%0A    public NoMachinesAvailableException(Location location, String s) %7B%0A        super(s);%0A        this.location = location;%0A    %7D%0A    %0A    /**%0A     * @deprecated since 0.5; don't include Location - just use %7B@link #NoMachinesAvailableException(String, Throwable)%7D%0A     */%0A    public NoMachinesAvailableException(Location location, String s, Throwable throwable) %7B%0A        super(s, throwable);%0A        this.location = location;%0A    %7D%0A%0A    /**%0A     * @deprecated since 0.5; don't include Location - just use %7B@link #NoMachinesAvailableException(String, Throwable)%7D%0A     */%0A    public NoMachinesAvailableException(Location location, Throwable throwable) %7B%0A        super(%22No machines available in %22+location.toString(), throwable);%0A        this.location = location;%0A    %7D%0A%0A    /**%0A     * @deprecated since 0.5; the catcher can know which location had no machines based on which%0A     *             location they asked for; will remove this so that the exception is definitely %0A     *             serializable.%0A     */%0A    public Location getLocation() %7B%0A        return location;%0A    %7D
 %0A%7D%0A

Tidy deprecated NoMachineAvailableException constructors