
org.subsonic.restapi.ErrorCode Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.07.26 at 10:09:10 PM CEST
//
package org.subsonic.restapi;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for ErrorCode.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="ErrorCode">
* <restriction base="{http://www.w3.org/2001/XMLSchema}int">
* <enumeration value="0"/>
* <enumeration value="10"/>
* <enumeration value="20"/>
* <enumeration value="30"/>
* <enumeration value="40"/>
* <enumeration value="41"/>
* <enumeration value="50"/>
* <enumeration value="60"/>
* <enumeration value="70"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "ErrorCode")
@XmlEnum(Integer.class)
public enum ErrorCode {
@XmlEnumValue("0")
GENERIC_ERROR(0),
@XmlEnumValue("10")
REQUIRED_PARAMETER_MISSING(10),
@XmlEnumValue("20")
INCOMPATIBLE_VERSION_CLIENT(20),
@XmlEnumValue("30")
INCOMPATIBLE_VERSION_SERVER(30),
@XmlEnumValue("40")
WRONG_USERNAME_OR_PASSWORD(40),
@XmlEnumValue("41")
TOKEN_AUTHENTICATION_NOT_SUPPORTED(41),
@XmlEnumValue("50")
USER_NOT_AUTHORIZED(50),
@XmlEnumValue("60")
TRIAL_PERIOD_OVER(60),
@XmlEnumValue("70")
DATA_NOT_FOUND(70);
private final int value;
ErrorCode(int v) {
value = v;
}
public int value() {
return value;
}
public static ErrorCode fromValue(int v) {
for (ErrorCode c: ErrorCode.values()) {
if (c.value == v) {
return c;
}
}
throw new IllegalArgumentException(String.valueOf(v));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy