FileDocCategorySizeDatePackage
ClassInSecondaryDex.javaAPI DocAndroid 5.1 API2440Thu Mar 12 22:22:12 GMT 2015com.android.multidexlegacyandexception

ClassInSecondaryDex

public class ClassInSecondaryDex extends Object

Fields Summary
private boolean
condition
Constructors Summary
public ClassInSecondaryDex(boolean condition)

        this.condition = condition;
    
Methods Summary
public voidcanThrow1()

        if (condition) {
            throw new ExceptionInMainDex();
        }
    
public voidcanThrow2()

        if (condition) {
            throw new ExceptionInSecondaryDex();
        }
    
public static voidcanThrowAll(java.lang.Throwable toThrow)

        if (toThrow != null) {
            throw toThrow;
        }
    
public intget1()

        try {
            canThrow1();
            canThrow2();
            return 1;
        } catch (ExceptionInMainDex e) {
            return 10;
        } catch (ExceptionInSecondaryDex e) {
            return 11;
        } catch (OutOfMemoryError e) {
            return 12;
        } catch (CaughtOnlyException e) {
            return 17;
        } catch (SuperExceptionInSecondaryDex|SuperExceptionInMainDex e) {
            return 23;
       }
    
public intget2()

        try {
            canThrow2();
            canThrow1();
            return 1;
        } catch (ExceptionInMainDex e) {
            return 10;
        } catch (ExceptionInSecondaryDex e) {
            return 11;
        } catch (OutOfMemoryError e) {
            return 12;
        } catch (CaughtOnlyException e) {
            return 17;
        } catch (SuperExceptionInSecondaryDex e) {
            return 23;
        } catch (SuperExceptionInMainDex e) {
            return 27;
       }