bq.java

来自「经过反编译和部分代码修改后的ultraimpro java源代码。可在netbe」· Java 代码 · 共 103 行

JAVA
103
字号
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2006-5-1 19:31:42
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 


public final class bq extends Exception
{

    public bq()
    {
        this(0);
    }

    public bq(int i, int j)
    {
        this(i);
        iErrorCode = j;
    }

    public bq(int i)
    {
        iErrorCode = 0;
        a_int_fld = i;
        switch(i)
        {
        case 0: // '\0'
            a_java_lang_String_fld = "MSN Exception";
            return;

        case 1: // '\001'
            a_java_lang_String_fld = "E-mail or password error! please check and try again.";
            return;

        case 3: // '\003'
            a_java_lang_String_fld = "Signing in to MSN server failed. ";
            return;

        case 5: // '\005'
            a_java_lang_String_fld = "Trial expired, please buy a license at http://www.mobisophy.com.";
            return;

        case 6: // '\006'
            a_java_lang_String_fld = "Registration key is invalid, please check it and register again";
            return;

        case 7: // '\007'
            a_java_lang_String_fld = "Account was changed 10 times, you can't change it anymore.";
            return;

        case 8: // '\iErrorCode'
            a_java_lang_String_fld = "You need upgrade this software! Visit www.mobisophy.com to get new version.";
            return;

        case 9: // '\t'
            a_java_lang_String_fld = "Something wrong with our registration server, try again later or contact us at support@mobisophy.com";
            // fall through

        case 2: // '\002'
        case 4: // '\004'
        default:
            return;
        }
    }

    public bq(String s)
    {
        iErrorCode = 0;
        a_int_fld = 4;
        a_java_lang_String_fld = s;
    }

    public final String getMessage()
    {
        if(iErrorCode != 0)
        {
            switch(iErrorCode)
            {
            case -3: 
                return "Establishing network connection failed. 1.Use Internet connection over GPRS instead of WAP or MMS connection 2.Make sure your GPRS/3G service is active  ErrorCode=" + iErrorCode;

            case -200: 
                return "Unable to connect MSN server. Make sure you are using Internet connection over GPRS instead of WAP or MMS connection  ErrorCode=" + iErrorCode;

            case -101: 
                return "Connect to MSN Authentication Server failed. Please try again later  ErrorCode=" + iErrorCode;

            case 500: 
            case 601: 
            case 910: 
            case 921: 
                return "MSN Server is busy or under maintenance. Please try again later.  ErrorCode=" + iErrorCode;
            }
            return a_java_lang_String_fld + "  ErrorCode=" + iErrorCode;
        } else
        {
            return a_java_lang_String_fld;
        }
    }

    public String a_java_lang_String_fld;
    public int a_int_fld;
    public int iErrorCode;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?