Package org.jrebirth.af.core.exception

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


        final UniqueKey<? extends Model> showModelKey = getWaveBean(wave).getShowModelKey();

        if (showModelKey == null) {
            LOGGER.error("ModelClass is null");
            throw new CoreRuntimeException("Illegal action : Model Class is null");
        }
        // Retrieve the mode according to its keyPart
        final Model modelInstance = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(showModelKey);

        //
        // if (keyPart == null) {
        // modelInstance = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(modelClass);
        // } else {
        // modelInstance = getLocalFacade().getGlobalFacade().getUiFacade().retrieve(modelClass, keyPart);
        // }

        if (modelInstance == null) {
            LOGGER.error("Model " + showModelKey.getClassField().getSimpleName() + " couldn't be created");
            throw new CoreRuntimeException("Illegal action : Model Instance is null: " + showModelKey.getClassField().getName());
        }

        // Attach the model to allow reuse later in the process
        getWaveBean(wave).setShowModel(modelInstance);
View Full Code Here


                // The component is accessible from facade, let's start its initialization
                readyObject.setup();

            } catch (final CoreException ce) {
                LOGGER.error(COMPONENT_RETRIEVAL_ERROR, ce);
                throw new CoreRuntimeException(ce); // Pop up the exception wrapped into a runtime exception
            }
        }

        return readyObject;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public void manageUnprocessedWave(final Wave wave) {
        throw new CoreRuntimeException(WAVE_LOST.getText(wave.toString()));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public void manageUnprocessedWave(final String contextExplanation, final Wave wave) {
        throw new CoreRuntimeException(WAVE_LOST_CONTEXT.getText(wave.toString(), contextExplanation));
    }
View Full Code Here

                                ((WaveTypeBase) waveType).getWaveItemList().size(), methodParameters);

                        LOGGER.log(WAVE_HANDLER_METHOD_REQUIRED, waveReadyClass.getSimpleName(),
                                methodName, ((WaveTypeBase) waveType).getItems());

                        throw new CoreRuntimeException(BROKEN_API_WRONG_PARAMETERS.getText(waveReadyClass.getSimpleName(),
                                methodName,
                                ((WaveTypeBase) waveType).getWaveItemList().size(),
                                methodParameters));
                    }
                }
View Full Code Here

                        sb.append(missing.toString());
                    }

                    LOGGER.log(BROKEN_WAVE_BAD_ITEM_LIST, sb.toString());

                    throw new CoreRuntimeException(BROKEN_WAVE_BAD_ITEM_LIST.getText(sb.toString()));
                }
            }
        }
    }
View Full Code Here

        if (viewClass != null && !NullView.class.equals(viewClass)) {
            // Build the current view by reflection
            try {
                this.view = (V) ClassUtility.buildGenericType(this.getClass(), View.class, this);
            } catch (final CoreException e) {
                throw new CoreRuntimeException("Failure while building the view for model " + getClass(), e);
            }
        }
    }
View Full Code Here

     * @param t the throwable source (could be null)
     * @param parameters the message parameters
     */
    protected void throwError(final MessageItem messageItem, final Throwable t, final Object... parameters) {
        if (JRebirthParameters.DEVELOPER_MODE.get()) {
            throw new CoreRuntimeException(messageItem, t, parameters);
        }
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public Class<? extends Model> getFirstModelClass() {
        throw new CoreRuntimeException(OVERRIDE_FIRST_MODEL_CLASS);
    }
View Full Code Here

        Model model;

        final UniqueKey<?> key = innerModel.getKey();

        if (key == null) {
            throw new CoreRuntimeException("InnerModel must have a valid key ( " + innerModel.toString() + ")");
        }

        // If the inner model hasn't been loaded before, get it from UIFacade
        if (!this.innerModelMap.containsKey(innerModel)) {
View Full Code Here

TOP

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

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.