Example usage for java.lang IllegalAccessError toString

List of usage examples for java.lang IllegalAccessError toString

Introduction

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

Prototype

public String toString() 

Source Link

Document

Returns a short description of this throwable.

Usage

From source file:com.iaraby.template.view.fragment.ListFrag.java

@Override
public Loader<Cursor> onCreateLoader(int args0, Bundle bundel) {
    SimpleCursorLoader loader = new SimpleCursorLoader(getActivity()) {
        @Override//from  ww  w  .j a va 2 s .c  om
        public Cursor loadInBackground() {

            Cursor cursor = null;
            if (isFav) {
                try {
                    cursor = FavoriteManager.getInstance(getActivity()).getFavCursor();
                } catch (IllegalAccessError ex) {
                    Log.e(Constants.LOG_TAG, ex.toString());
                }

            } else {
                cursor = MyDataAdapter.getInstance().getCtegories();
            } // check if list or favotite mode

            if (selectedId == Constants.EMPTY_INT && cursor != null && cursor.moveToPosition(selectedPos))
                selectedId = cursor.getLong(cursor.getColumnIndex(Category.COL_ID));
            if (isSelectDefault) {
                showDetails(selectedPos, selectedId, true);
                isSelectDefault = false;
            }
            return cursor;
        }
    };

    return loader;
}

From source file:org.apache.webdav.ui.WebdavSystemView.java

public WebdavSystemView(String uri, String rootPath, String username, String password)
        throws IllegalAccessError, URIException, IOException {
    try {/*from ww w  .  j av  a  2  s  .com*/
        this.rootURL = uriToHttpURL(uri + rootPath);
        this.uri = uri;
        this.rootURL.setUserinfo(username, password);
        this.username = username;
        this.password = password;
        this.rootPath = rootPath;

        this.connect();
        //System.out.println("Connected successfully to  : " + this.rootURL);
        this.disconnect();

        // Create home directory object
        this.homedir = new WebdavFile(this.rootURL, this.rootURL);
        //System.out.println("Homedir : " + this.homedir);
    } catch (IllegalAccessError e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    } catch (URIException e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    } catch (IOException e) {
        System.err.println(e.toString());
        e.printStackTrace();
        throw e;
    }

}