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

me.xhsun.guildwars2wrapper.error.GuildWars2Exception Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
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