Package org.glassfish.admin.amx.util

Examples of org.glassfish.admin.amx.util.ThrowableMapper


        Object result = null;

        try {
            result = getAttribute(name);
        } catch (Exception e) {
            throw new RuntimeException(new ThrowableMapper(e).map());
        }
        return (result);
    }
View Full Code Here


        return operationNameMatches(operationName, GET_PREFIX, suffix);
    }

    protected void handleException(final Exception e)
            throws MBeanException, ReflectionException {
        final ThrowableMapper mapper = new ThrowableMapper(e);
        final Throwable mapped = mapper.map();

        if (mapped instanceof ReflectionException) {
            throw (ReflectionException) mapped;
        } else if (mapped instanceof MBeanException) {
            throw (MBeanException) mapped;
View Full Code Here

TOP

Related Classes of org.glassfish.admin.amx.util.ThrowableMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.