FileDocCategorySizeDatePackage
Exceptions.javaAPI DocAndroid 1.5 API1542Wed May 06 22:41:16 BST 2009com.vladium.util.exception

Exceptions

public abstract class Exceptions extends Object
author
Vlad Roubtsov, (C) 2002

Fields Summary
Constructors Summary
private Exceptions()

Methods Summary
public static booleanunexpectedFailure(java.lang.Throwable t, java.lang.Class[] expected)

        if (t == null) return false;
        if (expected == null) return true;
        
        final Class reClass = t.getClass ();
        
        for (int e = 0; e < expected.length; ++ e)
        {
            if (expected [e] == null) continue;
            if (expected [e].isAssignableFrom (reClass))
                return false;
        }
        
        return true;