Package javax.naming

Examples of javax.naming.NamingException.initCause()


                return new VFSResource(entry);
            }
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
    }

View Full Code Here


            try {
                return new NamingContextEnumeration(list(base).iterator());
            } catch (IOException e) {
                NamingException ex = new NamingException
                    (sm.getString("resources.notFound", name));
                ex.initCause(e);
                throw ex;
            }
        }
        VirtualFile entry = null;
        try {
View Full Code Here

        try {
            entry = treeLookup(name);
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
        if (entry == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));
View Full Code Here

        try {
            return new NamingContextEnumeration(list(entry).iterator());
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
    }

View Full Code Here

                return new NamingContextBindingsEnumeration(list(base).iterator(),
                        this);
            } catch (IOException e) {
                NamingException ex = new NamingException
                    (sm.getString("resources.notFound", name));
                ex.initCause(e);
                throw ex;
            }
        }
        VirtualFile entry = null;
        try {
View Full Code Here

        try {
            entry = treeLookup(name);
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
        if (entry == null)
            throw new NamingException
                (sm.getString("resources.notFound", name));
View Full Code Here

            return new NamingContextBindingsEnumeration(list(entry).iterator(),
                    this);
        } catch (IOException e) {
            NamingException ex = new NamingException
                (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }
    }

View Full Code Here

            try {
                entry = treeLookup(name);
            } catch (IOException e) {
                NamingException ex = new NamingException
                    (sm.getString("resources.notFound", name));
                ex.initCause(e);
                throw ex;
            }
        }
        if (entry == null)
            throw new NamingException
View Full Code Here

            attrs.setContentLength(entry.getSize());
            attrs.setLastModified(entry.getLastModified());
        } catch (IOException e) {
            NamingException ex = new NamingException
            (sm.getString("resources.notFound", name));
            ex.initCause(e);
            throw ex;
        }

        return attrs;
       
View Full Code Here

            return new JndiContext(environment);
        } catch (NamingException e) {
            throw e;
        } catch (Exception e) {
            NamingException exception = new NamingException(e.getMessage());
            exception.initCause(e);
            throw exception;
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.