Package org.jrebirth.af.core.exception

Examples of org.jrebirth.af.core.exception.WaveException


    public void handle(final Wave wave) throws WaveException {

        final Method customMethod = retrieveCustomMethod(wave);

        if (customMethod == null) {
            throw new WaveException(wave);
        }

        // Grab the run type annotation (if exists)
        final RunInto runInto = customMethod.getAnnotation(RunInto.class);
View Full Code Here


                ClassUtility.callMethod(method, getWaveReady(), parameterValues.toArray());

            } catch (final CoreException e) {
                LOGGER.error(WAVE_DISPATCH_ERROR, e);
                // Propagate the wave exception
                throw new WaveException(wave, e);
            }

        } else {
            // If no custom method was proviced, call the default method named 'processWave(wave)'
            try {
                ClassUtility.getMethodByName(getWaveReady().getClass(), AbstractWaveReady.PROCESS_WAVE_METHOD_NAME).invoke(getWaveReady(), wave);
            } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException e) {
                LOGGER.error(WAVE_DISPATCH_ERROR, e);
                // Propagate the wave exception
                throw new WaveException(wave, e);
            }
        }

    }
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.exception.WaveException

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.