Example usage for javax.naming CannotProceedException CannotProceedException

List of usage examples for javax.naming CannotProceedException CannotProceedException

Introduction

In this page you can find the example usage for javax.naming CannotProceedException CannotProceedException.

Prototype

public CannotProceedException(String explanation) 

Source Link

Document

Constructs a new instance of CannotProceedException using an explanation.

Usage

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
}