Example usage for java.lang IllegalAccessError IllegalAccessError

List of usage examples for java.lang IllegalAccessError IllegalAccessError

Introduction

In this page you can find the example usage for java.lang IllegalAccessError IllegalAccessError.

Prototype

public IllegalAccessError(String s) 

Source Link

Document

Constructs an IllegalAccessError with the specified detail message.

Usage

From source file:cn.code.notes.gtask.data.MetaData.java

@Override
public JSONObject getLocalJSONFromContent() {
    throw new IllegalAccessError("MetaData:getLocalJSONFromContent should not be called");
}

From source file:com.baasbox.dao.FileDao.java

@Override
@Deprecated//from  www .ja v a 2 s .c o  m
public ODocument create() throws Throwable {
    throw new IllegalAccessError(
            "Use create(String name, String fileName, String contentType, byte[] content) instead");
}

From source file:com.cloudbees.jenkins.plugins.bitbucket.BitbucketCredentials.java

private BitbucketCredentials() {
    throw new IllegalAccessError("Utility class");
}

From source file:jenkins.branch.NameMangler.java

/**
 * Utility class.
 */
private NameMangler() {
    throw new IllegalAccessError("Utility class");
}

From source file:com.cloudbees.plugins.credentials.ContextMenuIconUtils.java

/**
 * Prevent instantiation.
 */
private ContextMenuIconUtils() {
    throw new IllegalAccessError("Utility class");
}

From source file:com.ponysdk.ui.server.basic.PObject.java

public void bindTerminalFunction(final String functionName) {

    if (nativeBindingFunction != null)
        throw new IllegalAccessError("Object already bind to native function: " + nativeBindingFunction);

    final Update update = new Update(getID());
    update.put(Dictionnary.PROPERTY.BIND, functionName);
    Txn.get().getTxnContext().save(update);

    nativeBindingFunction = functionName;
}

From source file:cn.code.notes.gtask.data.MetaData.java

@Override
public int getSyncAction(Cursor c) {
    throw new IllegalAccessError("MetaData:getSyncAction should not be called");
}

From source file:com.twitt4droid.util.Images.java

/**
 * Default constructor. Do NOT try to initialize this class, it is suppose
 * to be an static utility.//from   w  w  w.  jav a  2 s  . c o  m
 */
private Images() {
    throw new IllegalAccessError("This class cannot be instantiated nor extended");
}

From source file:com.yahoo.elide.jsonapi.models.Data.java

/**
 * Fetch the item if the data is toOne//from w w  w . j  a va2  s.  c  om
 *
 * @return T if toOne
 * @throws IllegalAccessError when the data is not toOne
 */
public T getSingleValue() {
    if (isToOne()) {
        return ((SingleElementSet<T>) values).getValue();
    }

    throw new IllegalAccessError("Data is not toOne");
}