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

cn.net.vidyo.common.CommonErrorEnum Maven / Gradle / Ivy

There is a newer version: 2.1.0.45.RELEASE
Show newest version
package cn.net.vidyo.common;

public enum CommonErrorEnum implements IErrorEnum {
    PARAMETER_ERROR(1010,"paramater fail"),
    InvalidArgumentFault(1001,"InvalidArgumentFault."),
    GeneralFault(1002,"GeneralFault."),
    RemoteException(1003,"RemoteException"),
    NotLicensedFault(1004,"NotLicensedFault."),
    AuthFaild(1005,"auth faild."),
    ExecuteFaild(1006,"execute faild."),
    NullValue(1007,"null value."),
    RoomAlreadyExists(1008,"RoomAlreadyExists."),
    UserAlreadyExists(1009,"UserAlreadyExists."),
    Unknow(9999,"unknow");

    int code;
    String message;

    private CommonErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy