Code example for InflateException

Methods: initCause

0
            InflateException ie = new InflateException(
                    attrs.getPositionDescription() + ": Error inflating class " + name);
            ie.initCause(e);
            throw ie;
        } catch (Exception e) {
            InflateException ie = new InflateException(
                    attrs.getPositionDescription() + ": Error inflating class "
                            + constructor.toString());
            ie.initCause(e);
            throw ie;
        } 
    } 
 
    private final T createItemFromTag(XmlPullParser parser, String name,
                                      AttributeSet attrs) {
        try { 
            T item = null;
            for (Factory<T> factory : mFactoryList) {
                try { 
                    item = factory.onCreateItem(name, mContext, attrs);
Connect your IDE to all the code out there  Get Codota for Java