List of usage examples for javax.naming CannotProceedException CannotProceedException
public CannotProceedException(String explanation)
From source file:com.dattack.naming.AbstractContext.java
@Override public Context createSubcontext(final Name name) throws NamingException { ensureContextNotClosed();//from w ww .j ava2 s . c o m if (closing) { throw new CannotProceedException("Context is closed"); } return doCreateSubcontext(name); }
From source file:com.dattack.naming.AbstractContext.java
private void ensureContextNotClosed() throws NamingException { if (closing) { throw new CannotProceedException("Context is closed"); }//from ww w . j av a2 s .co m }