me.xhsun.guildwars2wrapper.error.GuildWars2Exception Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw2wrapper Show documentation
Show all versions of gw2wrapper Show documentation
Guild Wars 2 API wrapper for Android
package me.xhsun.guildwars2wrapper.error;
/**
* @author xhsun
* @since 2017-02-09
*/
public class GuildWars2Exception extends Exception {
private ErrorCode errorCode;
public GuildWars2Exception(ErrorCode errorCode, String message) {
super(message);
this.errorCode = errorCode;
}
/**
* Meaning for different error code:
* Server: API server not found
* Key: Invalid API key
* Limit: Exceed 600 requests per minute limit
* Character: No such character for this account
* ID: Invalid ID
* TransTime: Invalid transaction time
* TransType: Invalid transaction type
* Network: Network error
* Other: Other
*
* @return error code
*/
public ErrorCode getErrorCode() {
return errorCode;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy