/** * Return a general naming exception with a root cause and a remaining name field. * * @param message the message * @param cause the exception cause, or {@code null} for none * @param remainingName the remaining name * @return the exception */ public static NamingException namingException(final String message, final Throwable cause, final Name remainingName) { final NamingException exception = namingException(message, cause); exception.setRemainingName(remainingName); return exception; }
ne.setRemainingName(org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(rest));
ne.setRemainingName(org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(rest)); ne.setRootCause(e); throw ne;
/** * Return a general naming exception with a root cause and a remaining name field. * * @param message the message * @param cause the exception cause, or {@code null} for none * @param remainingName the remaining name * @return the exception */ public static NamingException namingException(final String message, final Throwable cause, final Name remainingName) { final NamingException exception = namingException(message, cause); exception.setRemainingName(remainingName); return exception; }
/** * Return a general naming exception with a root cause and a remaining name field. * * @param message the message * @param cause the exception cause, or {@code null} for none * @param remainingName the remaining name * @return the exception */ public static NamingException namingException(final String message, final Throwable cause, final Name remainingName) { final NamingException exception = namingException(message, cause); exception.setRemainingName(remainingName); return exception; }
/** * Return a general naming exception with a root cause and a remaining name field. * * @param message the message * @param cause the exception cause, or {@code null} for none * @param remainingName the remaining name * @return the exception */ public static NamingException namingException(final String message, final Throwable cause, final Name remainingName) { final NamingException exception = namingException(message, cause); exception.setRemainingName(remainingName); return exception; }
/** * Return a general naming exception with a root cause and a remaining name field. * * @param message the message * @param cause the exception cause, or {@code null} for none * @param remainingName the remaining name * @return the exception */ public static NamingException namingException(final String message, final Throwable cause, final Name remainingName) { final NamingException exception = namingException(message, cause); exception.setRemainingName(remainingName); return exception; }
static private javax.naming.Context getContinuationContext(CannotProceedException cpe) throws NamingException { try { return NamingManager.getContinuationContext(cpe); } catch (CannotProceedException e) { java.lang.Object resObj = e.getResolvedObj(); if (resObj instanceof Reference) { Reference ref = (Reference)resObj; RefAddr addr = ref.get("nns"); if (addr.getContent() instanceof javax.naming.Context) { NamingException ne = new NameNotFoundException( "No object reference bound for specified name"); ne.setRootCause(cpe.getRootCause()); ne.setRemainingName(cpe.getRemainingName()); throw ne; } } throw e; } }
private NamingException getNamingException(String msg, NotFoundException e){ NamingException ne = new NameNotFoundException(msg); ne.setRootCause(e); ne.setResolvedName(new JndiName(e.getResolvedName())); ne.setRemainingName(new JndiName(e.getRemainingName())); return ne; } }
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(name); throw ne;
ne.setRemainingName(org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(rest));
ne.setRemainingName(org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(rest));
ne.setRemainingName(CNNameParser.cosNameToName(rest));
ex.setRemainingName(name); ex.setRootCause(e); throw ex;