Code example for InflateException

Methods: initCause

0
 
        } catch (InflateException e) {
            throw e;
 
        } catch (ClassNotFoundException e) {
            InflateException ie = new InflateException(attrs.getPositionDescription()
                    + ": Error inflating class(ClassNotFoundException in createViewFromTag) " + name);
            ie.initCause(e);
            throw ie;
 
        } 
//        catch (Exception e) { 
//            InflateException ie = new InflateException(attrs.getPositionDescription() 
//                    + ": Error inflating class(in createViewFromTag) " + name); 
//            ie.initCause(e); 
//            throw ie; 
//        } 
    } 
 
    /** 
     * Recursive method used to descend down the xml hierarchy and instantiate