Example usage for java.lang IllegalAccessException getClass

List of usage examples for java.lang IllegalAccessException getClass

Introduction

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

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.apache.sshd.common.file.nativefs.ExtendedNativeFileSystemView.java

public final boolean isCaseSensitive() {
    try {/*from w  w  w.j  a v  a2s  . com*/
        return ExtendedFieldUtils.readTypedField(caseInsensitiveField, this, Boolean.class).booleanValue();
    } catch (IllegalAccessException e) {
        throw new IllegalStateException(
                "Failed (" + e.getClass().getSimpleName() + ") to read currDir: " + e.getMessage(), e);
    }
}

From source file:org.mangelp.fakeSmtpWeb.httpServer.mvc.controller.AbstractActionHandler.java

protected Object executeAction(ActionInput input, ActionResult result, Method method) {
    Object methodResult = null;//from   w ww  .  j  a v a2  s .c o m

    try {
        methodResult = method.invoke(this, input, result);
    } catch (IllegalAccessException e) {
        result.fail(MvcErrors.UNHANDLED_ACTION_ERROR, e.getClass().getSimpleName() + ": " + e.getMessage());
    } catch (IllegalArgumentException e) {
        result.fail(MvcErrors.UNHANDLED_ACTION_ERROR, e.getClass().getSimpleName() + ": " + e.getMessage());
    } catch (InvocationTargetException e) {
        result.fail(MvcErrors.UNHANDLED_ACTION_ERROR, e.getClass().getSimpleName() + ": " + e.getMessage());
    }

    return methodResult;
}