Examples of IsisException


Examples of org.apache.isis.core.commons.exceptions.IsisException

        final Class<?> cls = object.getClass();
        try {
            final Method m = cls.getMethod("getId", new Class[0]);
            return (String) m.invoke(object, new Object[0]);
        } catch (final SecurityException e) {
            throw new IsisException(e);
        } catch (final NoSuchMethodException e) {
            final String id = object.getClass().getName();
            return id.substring(id.lastIndexOf('.') + 1);
        } catch (final IllegalArgumentException e) {
            throw new IsisException(e);
        } catch (final IllegalAccessException e) {
            throw new IsisException(e);
        } catch (final InvocationTargetException e) {
            throw new IsisException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.