
nl.pvanassen.steam.store.listing.SellException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of steam-api Show documentation
Show all versions of steam-api Show documentation
A Java API to access the Steam community market through the HTTP interface. This may be against the TOS so be careful using it!
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