Example usage for javax.naming OperationNotSupportedException OperationNotSupportedException

List of usage examples for javax.naming OperationNotSupportedException OperationNotSupportedException

Introduction

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

Prototype

public OperationNotSupportedException(String explanation) 

Source Link

Document

Constructs a new instance of OperationNotSupportedException using an explanation.

Usage

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public void unbind(Name name) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public void rebind(Name name, Object obj) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public void rename(Name oldName, Name newName) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:com.myyearbook.hudson.plugins.confluence.ConfluenceSession.java

public boolean addLabels(long id, String labels) throws RemoteException, OperationNotSupportedException {
    if (this.serviceV2 == null) {
        throw new OperationNotSupportedException("Labels are supported as of Confluence v4 and later.");
    } else {/*from   w ww.  j  a va 2s .co  m*/
        return this.serviceV2.addLabelByName(token, labels, id);
    }
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public Context createSubcontext(Name name) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public void destroySubcontext(Name name) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public String getNameInNamespace() throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public NameParser getNameParser(Name name) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}

From source file:com.surevine.alfresco.esl.impl.EnhancedSecurityConstraint.java

/**
 * Although we're a subclass of RMLOVConstraint, we have a richer way of setting the allowed values, setGroupDetailsSpecification, so although we need to support the method through the subclass relationship, we throw an exception if anyone actually calls it
 * /*  w w w.j av a2 s  .  c o  m*/
 * @throws EnhancedSecurityException
 *             all the time
 */
@SuppressWarnings("rawtypes")
@Override
public void setAllowedValues(List allowedValues) {
    throw new EnhancedSecurityException("Use setGroupDetailsSpecification instead of setAllowedValues",
            new OperationNotSupportedException(
                    "Property not supported in EnhancedSecurityConstraint.  Please use the groupDetailsSpecification property instead"));
}

From source file:io.pivotal.poc.gemfire.gtx.jndi.SimpleNamingContext.java

@Override
public NameParser getNameParser(String name) throws NamingException {
    throw new OperationNotSupportedException("SimpleNamingContext does not support [javax.naming.Name]");
}