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

nl.pvanassen.steam.store.listing.SellException Maven / Gradle / Ivy

Go to download

A Java API to access the Steam community market through the HTTP interface. This may be against the TOS so be careful using it!

There is a newer version: 3.0.8
Show newest version
package nl.pvanassen.steam.store.listing;

import nl.pvanassen.steam.error.SteamException;

/**
 * Exception while trying to sell the item
 * 
 * @author Paul van Assen
 */
public class SellException extends SteamException {
    private final boolean itemNotInInventory;

    SellException(String error) {
        super(error);
        itemNotInInventory = ((error != null) && error.contains("is no longer in your inventory"));
    }

    SellException(String error, Throwable cause) {
        super(error, cause);
        itemNotInInventory = ((error != null) && error.contains("is no longer in your inventory"));
    }

    /**
     * @return True if the item is missing from the inventory
     */
    public boolean isItemNotInInventory() {
        return itemNotInInventory;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy